| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
If you specifically want it in the format mm/dd/yy then you need to parse it out yourself:_______________________________________________
---------
set myDate to date "August 20, 2003"
set myShortDate to ""
set theMonth to the (month of myDate) as integer
set theDay to the (day of myDate) as integer
set theYear to (text 3 thru 4 of ((year of myDate) as text))
if theMonth is less than 9 then
set myShortDate to myShortDate & "0"
end if
set myShortDate to myShortDate & theMonth & "/"
if theDay is less than 9 then
set myShortDate to myShortDate & "0"
end if
set myShortDate to myShortDate & theDay & "/"
set myShortDate to myShortDate & theYear
---------
| References: | |
| >Re: Coerce time (From: Graff <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.