Re: Newbie Date questions
Re: Newbie Date questions
- Subject: Re: Newbie Date questions
- From: Christopher Nebel <email@hidden>
- Date: Tue, 2 Mar 2010 13:21:36 -0800
On Mar 1, 2010, at 5:10 PM, Michelle Steiner wrote:
>> If you want a date object but don't care about the time, you can just
>> set the time component to a default value, e.g.
>>
>> tell modDate to set {its hours, its minutes, its seconds} to {0, 0, 0}
>
> I've always used
>
> date (date string of modDate)
Be warned that that doesn't work in some locales in Leopard. It should work reliably world-wide in Snow Leopard. I also prefer the "set" form because it makes the intent clearer.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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