STR_TO_DATE()

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
bouncer
Forum Contributor
Posts: 162
Joined: Wed Feb 28, 2007 10:31 am

STR_TO_DATE()

Post by bouncer »

hi there.

how can i change my date formate using STR_TO_DATE function to AAAA-MM-DDThh:mm:ss, my code is

[sql] registry_date = STR_TO_DATE(@datafield1, '%d-%m-%Y') [/sql]

thanks in advance
Post Reply