Skip to content
Advertisement

How to convert date format in SQL Query Results?

I want to display Date fields in SQL Query Results as DD-MM-YYYY Format. In table it is vice versa. When I try with below query it does not works.

SQL Query Link: (Tables can be retrieved by clicking Employees and Orders links under “SQLSERVER Database:” section)

https://www.w3schools.com/sql/trysqlserver.asp?filename=trysql_func_sqlserver_convert3

SQL Query I used:

Advertisement

Answer

You can use the following query;

enter image description here

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement