Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

date with c#

Name: Anonymous 2010-06-14 15:43

example: today is 14/06/2010 and i have another date that is 25/06/2010...how can i see if the second date is 5 days greater than the first one?

Name: Anonymous 2010-06-14 16:03

>>1
(DateTime.Parse("25/06/2010") - DateTime.Parse("14/06/2010")).TotalDays

Also the second date is 11 days greater than the first one, you silly.

Be aware that DateTime.Parse depends on current culture and so might behave unexpectedly in Retarded States of Murka where they like their month first, then day, then year.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List