Ticks

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How does one determine the number of ticks from a given date as opposed to the date (Jan 1, 0001) that is used in the .Ticks method?

Thanks,
Mark
 
Dim dt1 As Date = Date.Now
Dim dt2 As Date = #7/7/2004#
Dim ts As TimeSpan = dt2.Subtract(dt1)
Debug.WriteLine(ts.Ticks))

/claes


Mark said:
How does one determine the number of ticks from a given date as opposed to
the date (Jan 1, 0001) that is used in the .Ticks method?
 
Back
Top