Le 5 sept. 2009 à 22:59:19, LuKreme a écrit :
On 5-Sep-2009, at 09:24, Yvan KOENIG wrote:
And what would be the result if the paragraph 1 is:
31/12/1943 Arpajon (Seine et Oise)
set myTest to "31/12/1943 Arpajon (Seine et Oise)" as string
set myDate to date (myTest)
return myDate
—> date "Friday, 31 December 1943 00:00:00"
Yvan KOENIG (VALLAURIS, France) samedi 5 septembre 2009 17:12:20
set myTest to "samedi 5 septembre 2009 17:12:20" as string
set myDate to date (myTest)
return myDate
—> error "Invalid date and time date samedi 5 septembre 2009 17:12:20 of «script»." number −30720
Thanks.
set mytest to "12/31/1943"
set myDate to date (mytest)
returns
error "Date et heure invalides date 12/31/1943 of «script»." number -30720
So, it appears that English systems are able to decipher a date using the format dd/mm/yyyy
but French system is unable to decipher a date using the format mm/dd/yyyy
In clear, non English systems are second zone ones. New kind of apartheid !
When I thought that Apple was seriously treating localization features, I was wrong.
Yvan KOENIG (VALLAURIS, France) dimanche 6 septembre 2009 12:04:11