Re: Simple Date-Time Format Question...
Re: Simple Date-Time Format Question...
- Subject: Re: Simple Date-Time Format Question...
- From: "Nigel Garvey" <email@hidden>
- Date: Wed, 25 Apr 2007 19:08:41 +0100
kai wrote on Wed, 25 Apr 2007 16:53:15 +0100:
>On 25 Apr 2007, at 14:22, Mark J. Reed wrote:
>
>> Total tangent here, but ... The UK date comes out "April 25"? I
>> thought that was an Americanism and the UK form was "25 April".
>
>Actually, that's an interesting observation, Mark.
>
>System Preferences here displays the following sample dates:
>
>----------------------------
>
> Full: Friday, 5 January 2007
> Long: 5 January 2007
> Medium: 5 Jan 2007
> Short: 05/01/2007
>
>----------------------------
>
>The date shown in my menu bar reflects the same formatting. However,
>compare the above with the following results:
>
>----------------------------
>
>tell "20070105" as «class isot» as date to ¬
> {date:it, string:it as string, date string:date string, short date
>string:short date string}
>
>--> [listed vertically for greater legibility]:
>
> date: date "Friday, January 5, 2007 00:00:00"
> string: "Friday, January 5, 2007 00:00:00"
> date string: "Friday, January 5, 2007"
> short date string: "5/1/07"
I think there must be some confusion on your machine, Kai. Your script
gives me the right results:
--> date:date "Friday 5 January 2007 00:00:00"
string:"Friday 5 January 2007 00:00:00"
date string:"Friday 5 January 2007"
short date string:"05/01/2007"
(I've customised the commas out of the "British" date/time format on my
machines.)
Did you quit and relaunch Script Editor after each date-format reset for
your previous post?
NG
_______________________________________________
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