Re: Can't Coerce String to Date?
Re: Can't Coerce String to Date?
- Subject: Re: Can't Coerce String to Date?
- From: Shane Stanley <email@hidden>
- Date: Sat, 14 Mar 2015 22:59:00 +1100
On 14 Mar 2015, at 10:50 pm, Yvan KOENIG <email@hidden> wrote:
>
> As you may see, "12/31/1943" and "12/31-43" are correctly treated as invalid dates.
> What is puzzling is that "12 31/1943" and "12 31 1943" are not treated the same way.
> I don't see any logic behind these different behaviors.
It's assuming two numbers separated by a space represent a time, and then ignores the rest.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
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