Get dates between two dates in UTC c# in scheduling system -
i creating 1 scheduling software people booking meeting schedule.
in case stored booking time in utc format. because multiple clients have own time zone.
but issue unable convert client local time utc , not getting date range.
please code bellow
public class dateranage { public datetime fromdatetime { get; set; } public datetime todatetime { get; set; } }
this class store , time
i getting , date time in javascript time format
//convert date time var from_dt = new datetime(1970, 1, 1, 0, 0, 0, 0, datetimekind.utc); var fromutcdate= from_dt.addseconds(math.round(fromjstime / 1000)); //convert date time var to_dt = new datetime(1970, 1, 1, 0, 0, 0, 0, datetimekind.utc); var toutcdate= to_dt.addseconds(math.round(tojstime / 1000));
assume fromjstime
, tojstime
javascript time ticks
my question how date range fromutcdate
, toutcdate
, store in dateranage
list object.
please me.
Comments
Post a Comment