asp.net - date difference function -


can body can teach me how use date difference function? using asp.net? please...

example

var currentdate = datetime.now; var pastdate = new datetime(2004, 06, 16); var timespan = currentdate - pastdate; int hourspassed = timespan.totalhours; 

you can subtract 1 date timespan have properties such as:


Comments

Popular posts from this blog

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

asp.net mvc 3 - Unexpected "foreach" keyword after "@" character -

Disabling Android home button for industry application -