• 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: "11/31/99" to date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >"11/31/99" to date (From: "Bourque, Jason" <email@hidden>)

  • Prev by Date: Re: "11/31/99" to date
  • Next by Date: Re: "11/31/99" to date
  • Previous by thread: Re: "11/31/99" to date
  • Next by thread: Re: "11/31/99" to date
  • Index(es):
    • Date
    • Thread