Fri Nov 28 2014 16:00:00 GMT 0530 (India Standard Time)
to 2014-11-28 16:00:00
I want the conversion to be in javascript only. In php some minutes goes up and down when i m using
date('Y-m-d H:i:s', strtotime(Wed Nov 26 2014 04:30:00 GMT 0530 (India Standard Time)));
gives me : 1970-01-01 05:30:00
.
date('Y-m-d H:i:s',time(Wed Nov 26 2014 03:30:00 GMT 0530 (India Standard Time)));
gives me 2014-11-26 17:32:04
2mins and 4secs are extra.
Thanks.