Re: "11/31/99" to date
Re: "11/31/99" to date
- Subject: Re: "11/31/99" to date
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 20 Dec 2000 12:04:13 -0800
On 12/20/00 11:31 AM, "Bourque, Jason" <email@hidden> wrote:
>
How would you set
>
>
"11/31/99" as date ? ? ?
date "11/31/99"
and watch it compile. It will always put the time as midnight if you do it
that way.
You can do
date "11/31/99 11:56 AM"
if you want to include the real time
If what you really want is
date string of date "11/31/99"
then that's what you should say.
Or
date string of (current date)
If you don't want the "Sunday, " part. then - on OS 8.6 (I think) and OS 9,
you can say
set d to date "11/31/99"
set theDate to (month of d) as string & " " & day of d & ", " & year of
date
If you're doing any date except (current date) inside an application block,
you'll have to make it
tell me to set d to date "11/31/99"
(and in a Smile text window, make that
tell AppleScript to set d to date "11/31/99"
)
Anything more sophisticated than the above, or to make sure it's always in
the form that a user has on his machine, check out Akua Sweets' 'the clock'
which can do everything and anything to do with dates.
--
Paul Berkowitz