I have a date in this string format "02/28/2012" and I want to convert it to UTC. I'm using the jquery datepicker to select thedate and populate an inputbox. any clues? Thanks
var datestr = "07/08/2005";
var datearr = datestr.split("/")
var utc = Date.UTC(datearr[2],datearr[0],datearr[1]);
var utcdate = Date.UTC(2012,2,28);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With