On 12/15/02 1:01 PM, "Bryan Harris" <[EMAIL PROTECTED]> wrote:
> This will force the script to have the OS interpret your date as long as the > number you've typed in is larger than 10000000. However, I can't seem to > get the OS to accept 20021214 as a date, even changing my date/time prefs. > 2002-12-14 seems to work. > AppleScript requires separators between year, month, day and time segments (hour, minute, second), but it's very liberal about what it will accept as separators. It doesn't have to be what's in your system setup. The one thing that's essential is that it's given in the same day/month/year _order_ as your system setup. You can just nag the user to do that, or you can steal my FormatDate() handler (which I got from Nigel Garvey, more or less, on AppleScript-Users list) to do it reliably. For time, 24-hr version will always work. Otherwise if it's am/pm or German Uhr, etc. it has to be the same as in the system setup. If you just ask the user to enter it their normal way, it will work for AppleScript. But NEVER 20021205 version without separators. It _must_ have separators, and must be un the same order that the system (and Entourage) uses. So for Sven, in Europe, 05/12/2002 will work fine. In Sweden 2002-12-05 will work fine. In Germany 05.12.2002 will work. In the US 5/12/2002, 05-12-02 will all work. That's why I said this RFC was irrelevant. It's no good for AppleScript unless you're going to parse it. It's the one way that won't work. -- Paul Berkowitz MVP Entourage PLEASE always state which version of Entourage you are using - 2001 or X. It's often impossible to answer your questions otherwise. -- To unsubscribe: <mailto:[EMAIL PROTECTED]> archives: <http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/> old-archive: <http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>
