• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: date/Snow Leopard changed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: date/Snow Leopard changed
      • From: Yvan KOENIG <email@hidden>
References: 
 >Re: date/Snow Leopard changed (From: Doug Tallman <email@hidden>)
 >Re: date/Snow Leopard changed (From: Yvan KOENIG <email@hidden>)
 >Re: date/Snow Leopard changed (From: LuKreme <email@hidden>)
 >Re: date/Snow Leopard changed (From: Yvan KOENIG <email@hidden>)
 >Re: date/Snow Leopard changed (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: date/Snow Leopard changed
  • Next by Date: Re: date/Snow Leopard changed
  • Previous by thread: Re: date/Snow Leopard changed
  • Next by thread: Re: date/Snow Leopard changed
  • Index(es):
    • Date
    • Thread