I m having a date time text which i m converting to local dateTime using the javascript date time function toString();
var txt = $(e).html();
var date = new Date(txt);
$(e).html (date.toString('yyyy-mm-dd'));
Now the toString method of javascript does not accept any parameters.
It always comes up with this format -
Tue Aug 26 2014 03:30:34 GMT+0530 (India Standard Time)
I could not change the date format and had to go with a library date.js as here
Any help without any js frameworks.
Regards