Re: convert the System.currentTimeMillis

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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