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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top