My web method is sending a date string to JavaScript e.g. "05/06/2014 09:00:00" in "dd/MM/yyyy hh:mm" format. But When I try to create a Date object in javascript it inverts the day and month. How Can I have a date object in JavaScript with "dd/MM/yyyy hh:mm" format.
-
Refer <w3schools.com/jsref/jsref_obj_date.asp> and <stackoverflow.com/questions/1576753/…>ngrashia– ngrashia2014-06-05 08:50:02 +00:00Commented Jun 5, 2014 at 8:50
-
1you can use the datejs plugin which is verry usefull to do this kind of stuffMivaweb– Mivaweb2014-06-05 08:50:15 +00:00Commented Jun 5, 2014 at 8:50
Add a comment
|