Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Date.UTC(YY,MM,DD,hh,mm,ss)
- var jsonDate = field.substr(1, field.indexOf(',')-1);
- var phpDate = jsonDate.split(/[- :]/);
- var jsDate = new Date(Date.UTC(phpDate[0], phpDate[1]-1, phpDate[2], phpDate[3], phpDate[4], phpDate[5]));
- Mon Jul 13 2015 21:11:05 GMT+0430 (Iran Daylight Time)
Add Comment
Please, Sign In to add comment