Archive of UserLand's first discussion group, started October 5, 1998.

Re: Bug in Date() routine in 4.11?

Author:André Radke
Posted:1/3/2000; 9:39:42 AM
Topic:Bug in Date() routine in 4.11?
Msg #:14019 (In response to 14017)
Prev/Next:14018 / 14020

My date format in the control panel is on Dutch (DD-MM-YYYY). Up to last week, dates put in as DD-MM-YY with YY between 40 and 90 coerced fine, but since the start of the new year the statement: Date( "27-11-48" ) yields "21-10-1912; 17:31:44" whereas earlier (in 1999) it would yield: "27-11-1948; 0:00:00"

I believe Frontier relies on the Mac OS toolbox calls for converting formatted date and time strings into its internal numerical representation. If only the last two digits of the year are given, you obviously have to make certain assumptions. For the Mac OS toolbox call StringToDate, these assumptions are described here:

http://developer.apple.com/techpubs/mac/Text/Text-290.html

I think this explains why you are getting unexpected results.




This page was archived on 6/13/2001; 4:53:54 PM.

© Copyright 1998-2001 UserLand Software, Inc.