Re: Dates/times from strings
Re: Dates/times from strings
- Subject: Re: Dates/times from strings
- From: Rick Bargerhuff alias cougar <email@hidden>
- Date: Fri, 21 Feb 2003 19:52:17 -0500
Hey Tim..
Just after a way to convert from a text string to a date, eg change
the string "21/2/2003" into an AppleScript date type.
Try this...
set thedate to "2/21/2003"
return date thedate
-- > returns thedate as an AppleScript date object
Keep in mind what Andrew said...
Note that what AppleScripts accepts as acceptable in the string
depends on
your international settings (e.g. date "2/21/2003" in the US, date
21/2/2003
pretty much everywhere else)
Good luck Tim!
Rick Bargerhuff alias cougar
Programmer / Developer
Multi-platform Technician / Specialist / Web Designer
Personal Email: email@hidden
Personal Website :
http://mywebpages.comcast.net/cougar718
_______________________________________________
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.