Hi There! I have a similar question to this.
I am trying to read/convert a datetime field in MySQL to a SQLLIte DateTime format. I have tried various variations without any luck.
I tried :
Console.WriteLine(dr(i).GetDateTime)
Console.WriteLine(CType(dr(i), Date))
'Console.WriteLine(Date.ParseExact(dr(i), "mm/dd/yyyy", System.Globalization.DateTimeFormatInfo.InvariantInfo))
Console.WriteLine(Format$(dr(i), "yyyy-MM-dd hh:mm:ss") & "',")
BUT keep on getting an error of >> conversion from type 'MySqlDateTime' to type string is not valid<<
I am reading a MySQL database from VB.NET and extracting the datetime value and THEN inserting the date into a SQL Lite database.
Thanks for help in advance..
P