Re: Mac dates ==> UNIX dates
Re: Mac dates ==> UNIX dates
- Subject: Re: Mac dates ==> UNIX dates
- From: KOENIG Yvan <email@hidden>
- Date: Sun, 22 Oct 2006 23:01:30 +0200
Le 21 oct. 06 à 16:38, kai a écrit :
—
-----------
on formDate(theDate)
tell theDate as «class isot» as string to text 6 thru 7 & "/" &
text 9 thru 10 & "/" & text 3 thru 4 & " " & text 12 thru 19
end formDate
-----------
Hello
may I write that I doesn't like dates where year is displaid with 2
digits.
So I prefer:
-----------
on formDate(theDate)
tell theDate as «class isot» as string to text 6 thru 7 & "/" &
text 9 thru 10 & "/" & text 1 thru 4 & " " & text 12 thru 19
end formDate
-----------
or even
-----------
on formDate(theDate)
tell theDate as «class isot» as string to text 1 thru 4 & "/" &
text 6 thru 7 & "/" & text 9 thru 10 & " " & text 12 thru 19
end formDate
-----------
which is better when sort is required
Yvan KOENIG _______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden