Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want convert following date into datetime

2013-Sep-06

i want above date to convert into datetime

What I have tried:

i tried following code
DATE_FORMAT('2013-Sep-06',"%Y-%m-%d %H:%i:%S")
Posted
Updated 8-Nov-19 1:44am

Use %M for the month name, see examples here: MySQL STR_TO_DATE Function - Features, Examples and Equivalents - SQLines Open Source Tools[^]

So that would be:
STR_TO_DATE('2013-Sep-06','%Y-%M-%d');
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900