Re: Current date notation
Re: Current date notation
- Subject: Re: Current date notation
- From: Dennis Wurster <email@hidden>
- Date: Thu, 10 May 2001 15:33:29 -0400
>
I'm looking for the syntax on current date notation. I want to have the
>
output of "Current Date" as this:
>
>
DD-MM-YYYY
Hi, try this:
set monthList to {January, February, March, April, May, June, July,
August, September, October, November, December}
repeat with i from 1 to 12
if month of (current date) = (item i of monthList) then
set monthString to text -2 thru -1 of ("0" & i)
exit repeat
end if
end repeat
set dayString to text -2 thru -1 of ("0" & day of (current date))
set resultString to dayString & "-" & monthString & "-" & year of
(current date)
Good luck,
-=Dennis=-
------------------------
Dennis Wurster
Senior IT Specialist
Infantino Associates