c# - Correct format to input date with time of the day -


i want able calculate time in hours , minutes elapsed between, say, 12:35pm 02/13/2016 1:45pm 02/14/2016, can't figure out correct format input it. edit: should add span between times stored in arraylist, 1 span per customer.

basically, need this:

var datea = new datetime(2016,2,13,12,35,0); var dateb = new datetime(2016,2,14,1,45,0);  var timespan = dateb - datea; var hours = timespan.hours; bar minutes = timespan.minutes; 

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -