kentyler
04-16-2003, 12:45 PM
when I run
var a = new Date(); // current date and time
debug.write( a );
I get Wed Apr 16 13:40:35 GMT-0700 2003
If I try
var b = newDate('Wed Apr 16 13:40:35 GMT-0700 2003')
debug.write( b );
I get invalid date.
My books says "The ECMAScript standard does not specify the format of the strings that can be parsed by date.parse()" and that when Date() is used with a string constructor it should be passed "a string reresentation of a date, in the format accepted by the Date.parse() method.
Do you know which string formats should work in Laszlo ?
var a = new Date(); // current date and time
debug.write( a );
I get Wed Apr 16 13:40:35 GMT-0700 2003
If I try
var b = newDate('Wed Apr 16 13:40:35 GMT-0700 2003')
debug.write( b );
I get invalid date.
My books says "The ECMAScript standard does not specify the format of the strings that can be parsed by date.parse()" and that when Date() is used with a string constructor it should be passed "a string reresentation of a date, in the format accepted by the Date.parse() method.
Do you know which string formats should work in Laszlo ?