Page 1 of 1

NuFormat

Posted: Thu Mar 15, 2012 6:17 am
by CoCiX
Hey, i have this JavaScript and I want to return me a date to the textfield but instead of date it returns me a number like this 1332047810918
how i can use nuFormat to change it to a date?
can you give me an example?
thx a lot
var today = new Date();
var prwto = today.setDate(today.getDate()+3);

Re: NuFormat

Posted: Tue Mar 20, 2012 11:12 pm
by admin
nuFormat formats a date that starts off in this format 2012-03-21

The number you are getting is seconds since 1970.

You need to format it with JavaScript http://stackoverflow.com/questions/1056 ... javascript

Steven