Re: Current date and future date
Re: Current date and future date
- Subject: Re: Current date and future date
- From: has <email@hidden>
- Date: Wed, 6 Feb 2002 19:16:02 +0000
Andy Wylie:
>
--note 'date "28/02/2002"' compiles to "Thursday, 28 February 2002 12:00:00
>
AM"
With one proviso: how the string "28/02/2002" is parsed depends on the
settings in the user's Date & Time control panel. The above formatting
would be misinterpreted on a Mac that has its D&T c.p. set to, say, US date
& time format (i.e. month/day/year).
This is something to be aware of if you are converting strings into date
objects while the script is running, ie:
======================================================================
set theString to "11/01/2002"
set theString to "11/01/2002"
set theDate to date theString
--> date "Friday, January 11, 2002 12:00:00am" (British D&T setting)
--> date "Friday, November 1, 2002 12:00:00am" (US D&T setting)
======================================================================
Cheers,
has
_______________________________________________
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.