Re: date/Snow Leopard changed
Re: date/Snow Leopard changed
- Subject: Re: date/Snow Leopard changed
- From: Deivy Petrescu <email@hidden>
- Date: Sun, 6 Sep 2009 10:40:00 -0400
On 06/09/2009, at 10:11 , Michelle Steiner wrote:
On Sep 6, 2009, at 3:04 AM, Yvan KOENIG wrote:
So, it appears that English systems are able to decipher a date
using the format dd/mm/yyyy
Nope, it doesn't, not American English systems; don't know about
British English systems, though.
date "31/12/09"
Will not compile; the error dialog says
Syntax Error
Invalid date and time date 31/12/09.
-- Michelle
--
"Growth for the sake of growth is the ideology of the cancer cell."
I used the following script:
<script>
set a to "12/31/2009"
set b to "31/12/2009"
try
{date a, date b}
on error e
if a is in e then
display dialog a & " is not a valid date." giving up after 3
else
display dialog b & " is not a valid date." giving up after 3
end if
end try
</script>
In System preferences I set date to the US format (12/31/2009) run
the script got an error with 31/12/200 is not a valid date.
In System preferences set my date format to "Custom". Run the script
again and got 12/31/2009 is not a valid date.
Deivy Petrescu
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