Re: Coping with Date format variations
Re: Coping with Date format variations
- Subject: Re: Coping with Date format variations
- From: "Mark J. Reed" <email@hidden>
- Date: Mon, 24 May 2010 17:47:24 -0400
On Mon, May 24, 2010 at 5:33 PM, Luther Fuller
<email@hidden> wrote:
So, it would seems that this handler is safe ...
on getAsDate(theYear, theMonth, theDay)
set theDate to (current date)
set day of theDate to 1
set month of theDate to theMonth
set day of theDate to theDay
return theDate
end getAsDate
Except you never set the year. :)
Otherwise, that is pretty much exactly the same as my handler, the only difference being you set day to 1 instead of setting month to January, and you leave the time as current. Whatever color bikeshed you want, I suppose.
--
Mark J. Reed <
email@hidden>
_______________________________________________
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