Convert Javascript Date from UTC to Local Timezone
var strdate = ‘2013/05/03 03:13:00’;
var d = new Date(strdate);
var d = new Date(d.getTime() – d.getTimezoneOffset() * 60 * 1000);
used it with Titanium Appcelerator
Written by iassael on . Posted in android, computing, iOS
var strdate = ‘2013/05/03 03:13:00’;
var d = new Date(strdate);
var d = new Date(d.getTime() – d.getTimezoneOffset() * 60 * 1000);
used it with Titanium Appcelerator