I want to know how to generate time and date in C# then format that value to Mysql.
Mysql supports this format: 0000-00-00 00:00:00.
More information – I am importing datetime from mysql, and saving it in sqlite as Text I want to update datetime in sqlite when a event happens, then I sync data back to mysql.
What is the best format to run queries in sqlite on datatime?
I would like to keep the same format: 0000-00-00 00:00:00.
Does it need to be converted to anything else native to C# or and Sqlite Database and then converted back to mysql data when synced?
Just looking for the best option.
For first question you could use