Re: Coerce date saved as text back to Applescript's date format?
Re: Coerce date saved as text back to Applescript's date format?
- Subject: Re: Coerce date saved as text back to Applescript's date format?
- From: jj <email@hidden>
- Date: Mon, 20 Dec 2004 21:52:44 +0100
One more thing: the string must be formatted according to the International
preference pane, or it will error. For instance, this won't work in my
system:
date "Thursday, December 16, 2004 11:24:05 AM"
And this will do:
date "jueves, 16 diciembre 2004 11:24:05"
date "16/12/04 11:24:05"
Or:
set x to current date
set day of x to 16
set month of x to December
set year of x to 2004
set time of x to (11 * 3600) + (24 * 60) + (1 * 5)
x --> your date
jj
--
http://www.macscripter.net/
http://www.osaxen.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden