My Weblog

Back Disabled  Next

Date Format

This is the reverse function of the DATE_FORMAT() function. It takes a string str and a format string format. STR_TO_DATE() returns a DATETIME value if the format string contains both date and time parts, or a DATE or TIME value if the string contains only date or time parts. The date, time, or datetime values contained in str should be given in the format indicated by format. For the specifiers that can be used in format, see the table in the DATE_FORMAT() function description. All other characters are just taken verbatim, thus not being interpreted. If str contains an illegal date, time, or datetime value, STR_TO_DATE() returns NULL.

SQL

Đen như mõm chó

Friday the 13th

Second entry

 

Top

Valid CSS! Valid XHTML!

Not copyrighted, man, but please let me know if you use something here for your own purpose - just send me an email, or use the Contact form.

Also, for God's sake, please permit me to run some Javascript.