javascript - Datetime in MST Zone -
on asp.net mvc application save date on datetime
field in sql sever db.it saves 2015-04-22 18:43:18.967
.so need show mst (mountain standard time)
on client side.so how can ? can use moment.js
or other javascript library that.thanks in advance.
if send timestamp client , using momentjs, it's pretty simple
var day = moment(ts_in_milliseconds).tz('america/denver')
with string provided, can this:
var utctime = moment.utc('2015-04-22 18:43:18.967').todate(); var msttime = moment(utctime).tz('america/denver').format('yyyy-mm-dd hh:mm:ss');
Comments
Post a Comment