convert the System.currentTimeMillis

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

Guest

Dear Gent

can help me convert the System.currentTimeMillis to VB.Net code , i
tried system.DateTime.Now.Ticks what is not even close.
 
Hello, Ahmed!

AA> can help me convert the System.currentTimeMillis to VB.Net code
AA> , i tried system.DateTime.Now.Ticks what is not even close.

Sorry, code sample is in C#. IMO it will be easy to convert to VB code

TimeSpan t = (DateTime.UtcNow - new DateTime(1970, 1, 1));
long timestamp = Convert.ToInt64(t.TotalMilliseconds);
return timestamp;

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 

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