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);
Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
NuFormat
Re: NuFormat
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
The number you are getting is seconds since 1970.
You need to format it with JavaScript http://stackoverflow.com/questions/1056 ... javascript
Steven