w3schools str_to_date sql code example Example: str_to_date sql server SELECT STR_TO_DATE('17-09-2010','%d-%m-%Y');