MySQL Forums
Forum List  »  Newbie

Proper datetime format for insert
Posted by: George Padvorac
Date: August 01, 2022 11:55AM

I have a DATETIME column and am trying to insert a datetime value with milliseconds but am getting an error.

this is the value I'm passing in:
'8:1:2022 12:23:16:342'

and this is the error:
'8:1:2022 12:23:16:342' //*** this is bad format

What is the correct way to do this?
Thank you.

Options: ReplyQuote


Subject
Written By
Posted
Proper datetime format for insert
August 01, 2022 11:55AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.