To calculate date difference in milliseconds, we can't use 'DateDiff' function since the lower precision is second.
Thus, one good way is to use system.datetime.ticks
It works perfectly with high precision!
Thus, one good way is to use system.datetime.ticks
Dim myDateStarts as date Dim myDateEnds as date Dim totalDuration as long Dim tempTickCount as long = myDateEnds.Ticks - myDateStarts.Ticks totalDuration = (tempTickCount / 10000) 'convert to milliseconds
It works perfectly with high precision!
Comments
you made blogging look easy. The overall look of your site is great, let alone the content!
Look into my web page - beitragssatz gesetzliche krankenkasse
blog. It appears as if some of the written text on your posts are running off the
screen. Can someone else please provide feedback and let me know if this is happening to
them as well? This might be a problem with my internet browser because I've had this happen previously. Thank you
Take a look at my blog post: bad credit finance
my website: günstiger online shop kleidung