.net - Date Difference in ASP.Net -


How do I get date difference in ASP.NET C #?

Example: D1 = 28 / 04/2009 09:26:14 d2 = 28/04/2009 09:28:14

dated = D2 - D1

I think you can do it in the following way:

  Date time d1 = date time.Now; Date time d2 = date time.Now Eddies (-1); Timespace T = D1 - D2;  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -