Re: Conversion of ISO Date String to AppleScript Date
Re: Conversion of ISO Date String to AppleScript Date
- Subject: Re: Conversion of ISO Date String to AppleScript Date
- From: Ed Stockly <email@hidden>
- Date: Sat, 04 Mar 2017 20:24:48 -0800
Even simpler,,,
set ISOdateString to "2017-03-04 11:15:15"
set appleScriptDate to my AppleScriptISODate(ISOdateString)
return appleScriptDate
on AppleScriptISODate(ISOdateString)
set {theYear, theMonth, theDay, theHour, theMin, theSec} to words of ISOdateString
set myDate to current date
set {year of myDate, month of myDate, day of myDate, hours of myDate, minutes of myDate, seconds of myDate} to {theYear as integer, theMonth as integer, theDay as integer, theHour as integer, theMin as integer, theSec as integer}
return myDate
end AppleScriptISODate
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden