Subtract two system times

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • salo
    New Member
    • Mar 2007
    • 18

    Subtract two system times

    Actually i have two textboxes in which from time and to time will be there...both the timings are system timings....now my question is i have to get this two timing subtracted in a textbox(No Of days)...

    Plz help me out
    thanx in advance.
  • sumithsumith
    New Member
    • Mar 2007
    • 13

    #2
    TimeSpan diffDate = endDate.Subtrac t ( startDate );
    its in c#.net

    Comment

    • salo
      New Member
      • Mar 2007
      • 18

      #3
      Originally posted by sumithsumith
      TimeSpan diffDate = endDate.Subtrac t ( startDate );
      its in c#.net
      thanx sir

      but my question is

      i have two textbox

      fromtime
      totime

      in both the textbox system automatic time will be stored and i have to find the difference in their timing and should store that value in another textbox called No Of Hours..... its in c# only...plz send me the exact code ...i have mention my three textbox name.

      Regards,
      juli

      Comment

      • kenobewan
        Recognized Expert Specialist
        • Dec 2006
        • 4871

        #4
        Please don't ask for the exact code. The experts are here to help not do your work for you. Thanks.

        Comment

        Working...