Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sql server date Column format

I have one column in SQL Server table with type date and its default setting is yyyy-MM-dd. I want to chage it like dd-MM-yyyy.

How can I do it?

like image 960
Irakli Lekishvili Avatar asked Mar 17 '26 20:03

Irakli Lekishvili


1 Answers

its default setting is yyyy-MM-dd

No, it's not. There is no formatting information at all associated with the field.

The value is not formatted by the database, it's returned only as a point in time. Formatting that value into it's textual representation is done by the applcation that is getting the data from the database.

So, there is nothing that you can do in the database to change how the date value is formatted, you have to change that where the data is displayed.

like image 183
Guffa Avatar answered Mar 19 '26 11:03

Guffa