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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With