Re: date format
Re: date format
- Subject: Re: date format
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 27 Nov 2001 09:19:06 -0800
On 11/27/01 8:12 AM, "Marc K. Myers" <email@hidden> wrote:
>
> --Akua Sweets OSAX
>
> the clock using form "%d/%m/%y"
>
> -- "27/11/01"
>
>
Unfortunately, Akua Sweets would give you "09/03/01", which wouldn't
>
match "9/3/2001" on a string comparison. I don't know FMP, so I don't
>
know if that would work. You can extract the date elements without the
>
leading zeros (and with the century) using Akua Sweets with this rather
>
clumsy construction:
>
>
set theDate to "" & ((the clock using form "%m") as number) & "/" & [optn-L]
>
((the clock using form "%d") as number) & "/" & (the clock using
>
form "%c%y")
Why not use
set theDate to (the clock using system form "%d")
That way everybody gets the short date exactly as it is on their own
computer, as per the date & time control panel - separators, leading zeroes,
month-day order, 2-or-4 digits for year etc. etc. exactly how they like it?
Non-osax (OS X, e.g) Emmanuel's method works great. And there's a way,
originated by Nigel Garvey, for finding out the month-day-year order used by
the user. Interested?
--
Paul Berkowitz