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 "\" -

web applications - Making Python scripts work on MAMP -

cocoa - Converting NSString to keyCode+modifiers for AXUIElementPostKeyboardEvent -