Date Measurements in C#
-
Hi, i'm creating a C# program that measures date differences. for example i have 2 text boxes, one text box contains the date 4/12/2007, the other text box contains 5/23/2008. I need to count the number of days difference from 4/12/2007 to 5/23/2008. Im sorta new to C# and i have no idea how to do this, since i cant just treat it as simple numerical values, given that it must reference the calendar for the measurements to be exact. thanks in adavance..
-
Hi, i'm creating a C# program that measures date differences. for example i have 2 text boxes, one text box contains the date 4/12/2007, the other text box contains 5/23/2008. I need to count the number of days difference from 4/12/2007 to 5/23/2008. Im sorta new to C# and i have no idea how to do this, since i cant just treat it as simple numerical values, given that it must reference the calendar for the measurements to be exact. thanks in adavance..
See the documentation for the
DateTime
andTimeSpan
classes
Upcoming events: * Glasgow: Introduction to AJAX (2nd May), SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website
-
See the documentation for the
DateTime
andTimeSpan
classes
Upcoming events: * Glasgow: Introduction to AJAX (2nd May), SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website