Skip to content

Instantly share code, notes, and snippets.

@bradbrowne
Last active January 10, 2017 07:25
Show Gist options
  • Save bradbrowne/10c274eb0336a4120c0ba17db5ab8908 to your computer and use it in GitHub Desktop.
Save bradbrowne/10c274eb0336a4120c0ba17db5ab8908 to your computer and use it in GitHub Desktop.
πŸŽ— Convert Local DateTime to UTC Milliseconds in VB.NET
cdate(v.Value).ToUniversalTime().Subtract(New DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).TotalMilliseconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment