Re: Date math question
Re: Date math question
- Subject: Re: Date math question
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 09 Jun 2003 10:46:10 -0700
On 6/9/03 10:33 AM, "Michelle Steiner" <email@hidden> wrote:
>
This works:
>
>
set foo to "jul 7"
>
set bar to "jun 26"
>
set foo to (date foo)
>
set bar to (date bar)
>
(foo - bar) / days
>
>
This doesn't:
>
>
set foo to "jul 7"
>
set bar to "jun 26"
>
(date foo) - (date bar)
>
>
"(date bar)" is highlighted, with the error as shown below:
>
>
--> Can't make date "Thursday, June 26, 2003 12:00:00 AM" into a number
>
or date.
>
>
How come?
It has to be resolved first:
(date foo) - (get date bar)
--> 950400
--
Paul Berkowitz
_______________________________________________
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.