Built-in date functions ... qwirk or bug?
Alan German
asg at erols.com
Wed Mar 26 13:27:08 PST 2003
On Wednesday, March 26, 2003, at 04:13 PM, Dylan Raethel wrote:
> timeToCheck = "20/03/2003; 07:11:11 a.m.";
> date.get(timeToCheck, @dayAddr, @monthAddr, @yearAddr, @hourAddr,
> @minuteAddr, @secondAddr);
This snippet (and the other similar to this) won't compile on my Mac
without first coercing timeToCheck to a date data type. In fact,
date.get requires the first parameter to be a dateType, not a string.
I also had to arrange the dd/mm/yy as mm/dd/yy to match my local
machines date format.
But after those changes, I got "7" and "8" in both dialogs.
Are you sure your system's date settings are dd/mm/yy?
And, are you sure you're coercing timeToCheck to a date?
Alan
More information about the Frontier-Users
mailing list