View Full Version : date parsing
johnagrandy
05-12-2003, 10:39 AM
how does one determine the system year, month, day-of-month, etc. ?
has laszlo yet implemented javascript Data.parse() ?
antun
05-12-2003, 10:51 AM
The Date object has a bunch of methods. To create a date object:
var d = new Date();
var d = new Date( ms );
var d = new Date( yr, mo, [day], [hours].... );
You can also pass the date constructor either the number of milliseconds since Jan 1970, or a number of arguments corresponding to year, month, day, hours, minutes, seconds, milliseconds. If you do the latter, only year and month are required.
The first example (without any arguments) will get you the current date.
has laszlo yet implemented javascript Data.parse() ?
No not yet.
-Antun
kentyler
05-20-2003, 06:42 AM
I have a full list of which functions in core javascript work in laszlo and which do not (with code examples) at
http://www.seedwiki.com/page.cfm?wikiid=1944&doc=LaszloUser
I am in the process of writing functions that mimic the date functions in ColdFusion. It should be possible to write a function to substitute for Date.parse() as well.
p.s. if I've missed a function in my attempt to test all of core javascript please add it to the "javascript" page on the wiki.
antun
05-20-2003, 08:52 AM
Hey kentyler
The wiki looks great! It's moved on a lot since I last saw it.
-Antun
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.