Re: Newbie: Coercing Month of date class to a number
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.