difference between 2 dates in C#

divya rocks posted at 08-May-08 03:04

hi, i want  out put as '1'  when both from date and to date are fall in same date.

 

ex: if  fromdate is 21/10/2008 and todate is  21/10/2008.  i want the difference between fromdate and todate as '1'.  for salary calcutaon i want this.if  user selects both dates as same,then  he will be liable for 1 day salary.

how to do this, let mwe know

'thank you.


Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  difference between 2 dates in C# - divya rocks  08-May-08 03:04 3:04:12 AM
      Check This - Chirag Bhavsar  08-May-08 03:19 3:19:05 AM
      using System.TimeSpan - sundar k  08-May-08 03:42 3:42:40 AM
      Re: - Aravind Kumar  08-May-08 03:53 3:53:25 AM
      C# DateDiff - mv ark  08-May-08 04:00 4:00:17 AM
      cheers - santhosh kapa  08-May-08 06:20 6:20:47 AM
      Do it like this - Sanjay Verma  08-May-08 06:53 6:53:59 AM
View Posts