You want to convert a local time to UTC time to be stored in a database running Vb.net
' Your local time
Debug.Print("Time local:" + Now.ToString("yyyy-MM-dd HH:mm:ss"))
Dim currentTime As DateTime = DateTime.UtcNow 'UTC Time
Debug.Print("Time UTC:" + currentTime.ToString("yyyy-MM-dd HH:mm:ss"))
' Convert UTC to local time
Debug.Print("UTC to Local time:" + currentTime.ToLocalTime.ToString("yyyy-MM-dd HH:mm:ss"))
Subscribe to:
Post Comments (Atom)
MySQL to MariaDB
Here is a good description how to migrate to MariaDb MySQL to MariaDb Example of how to dump data from MySQL port=3307: mysqldump --user=ro...
-
When converting an VB2008 application to VB2010 I run into trouble regarding COM objects while compiling. you get errors like: Error 1...
-
In a module you have declared a Structure or Enum that you will use through out a project. Module Module1 Public Structure dummy ...
-
Apache2 crashes on Ubuntu Linux 22.04.5 after Zabbix was updated to 7.0.26 During a upgrade of my Ubuntu server there was a new package for ...
No comments:
Post a Comment