Re: date "Jan" --> date object
Re: date "Jan" --> date object
- Subject: Re: date "Jan" --> date object
- From: Emmanuel <email@hidden>
- Date: Wed, 13 Nov 2002 14:02:12 +0100
At 1:00 PM -0500 12/11/02, Arthur J. Knapp wrote:
Here's something I never noticed before: you can simply use a
month name-string to obtain a date for the first day of that month
for the current year.
date "November" --> compiles as date "Friday, November 1, 2002 12:00:00 AM"
date ("" & "Nov") --> returns date "Friday, November 1, 2002 12:00:00 AM"
I think this behavior was implemented for compatibility with some
famous French saying: "en Mai fais ce qu'il te plait" (in May do
whatever you want)
--------------------------------------------
date "when may I do whatever I want?"
--> May 1st
--------------------------------------------
Emmanuel
PS
If you want the string to remain as you wrote it through compilation,
try "date "bla bla" of (current date)"
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.