• 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 format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: date format (From: "Marc K. Myers" <email@hidden>)

  • Prev by Date: how to prevent "script timeouts"?
  • Next by Date: Re: date format
  • Previous by thread: Re: date format
  • Next by thread: Re: date format
  • Index(es):
    • Date
    • Thread