Friday, January 16, 2009

Getting the current date

Use DateIso(). This is similar to Now() in ASP. Using DateIso() ensures that you are using the correct date format for Lodestar.

To split the date use:

var dt_array=DateIso().split("T");

var newDate = dt_array[0]+" "+dt_array[1];

No comments:

Post a Comment