• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Newbie: Coercing Month of date class to a number
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie: Coercing Month of date class to a number


  • Subject: Re: Newbie: Coercing Month of date class to a number
  • From: "Marc K. Myers" <email@hidden>
  • Date: Wed, 20 Feb 2002 15:06:14 -0700
  • Organization: [very little]

> From: "Casey ,Mr Damon" <email@hidden>
> To: "'email@hidden'"
> <email@hidden>
> Subject: Newbie: Coercing Month of date class to a number
> Date: Wed, 20 Feb 2002 15:10:02 -0000
>
> Is there an easier way of doing this directly using "current date", or is
> this the only way of doing it, or should I use a repeat loop?

on monthNum from dateObj
copy dateObj to dateTemp
set month of dateTemp to January
return (dateObj - dateTemp + 3944592) div 2629728
end monthNum

set x to monthNum from (current date)

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[02/20/2002 3:05:27 PM]
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Transmit
  • Next by Date: Re: Can't re-name file with time stamp
  • Previous by thread: Re: Newbie: Coercing Month of date class to a number
  • Next by thread: Re: Newbie: Coercing Month of date class to a number
  • Index(es):
    • Date
    • Thread