Re: Applescript Date Manipulation...
Re: Applescript Date Manipulation...
- Subject: Re: Applescript Date Manipulation...
- From: Richard Morton <email@hidden>
- Date: Sat, 21 Dec 2002 14:19:36 +1100
On Saturday, December 21, 2002, at 01:00 PM, Domains4Days.com wrote:
... But I would really like it to look like:
12-20-02 5-54-00 PM ( short version - PC friendly)...
There are some handlers on The FooDoo Lounge that will pretty much do
this. They all use a 4 digit year but apart from that, this does what
you want:
on dateStr from dateObj
return (numDateUS from dateObj) & space & (timeString from dateObj)
end dateStr
dateStr from (current date)
--> "12-21-2002 2-12-26 PM"
numDateUS is here:
http://home.netc.net.au/~sunreal/FooDooLounge/code/
date_handlers.html#nus
timeString is here:
http://home.netc.net.au/~sunreal/FooDooLounge/code/
date_handlers.html#timeString
Cheers,
Date R
_______________________________________________
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.