| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
At 04:58 -0400 04/30/2004, Graff wrought:
Your convertMonthToInteger function works fine but here's an alternative that does the same job and does it with less clutter in your script:
Jaguar can now do the direct coercion:
on dateToInt(theDate)
tell theDate
set m to it's month as integer
if m < 10 then set m to "0" & m
end tell
end dateToInt
set d to date "Thursday, May 04, 1961 11:40:00"
dateToInt(d)
--> 05
| References: | |
| >Repaying help by posting small Applescripts (From: Richard Covert <email@hidden>) | |
| >Re: Repaying help by posting small Applescripts (From: Graff <email@hidden>) | |
| >Re: Repaying help by posting small Applescripts (From: Christopher Stone <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.