converting timespan to double value.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tarundhoom
    New Member
    • Aug 2010
    • 4

    converting timespan to double value.

    i want to convert ts to double value ,so i can compute it
    Code:
     timespan ts=datetimepicker1-datetimepicker2;
    Last edited by Niheel; Aug 9 '10, 03:48 PM. Reason: fixed code tags
  • GaryTexmo
    Recognized Expert Top Contributor
    • Jul 2009
    • 1501

    #2
    You can compute it via DateTime values...

    Code:
    TimeSpan ts = datetimepicker1.Value - datetimepicker2.Value;
    If you need to use a single value, you can get the Ticks property on a DateTime or TimeSpan object and operate on those.

    Comment

    • tarundhoom
      New Member
      • Aug 2010
      • 4

      #3
      thanks u so much

      Comment

      Working...