Convert sql server data format

Asked

Viewed 895 times

0

Well, I need to convert the data in sql server to dd/mm/yyyy I need an update or something that can help me. Screenshot of the table column below, as it is now:

inserir a descrição da imagem aqui

I need you to stay 03-10-2016 for example.

2 answers

1


This is only the default display format within the database, the date information itself is correct and has nothing to change. If you want to return the formatted date as mentioned, you will need to do something like this

SELECT CONVERT(VARCHAR(19),GETDATE(),105)

The last parameter is that it determines how the formatting will come, for more details of which numbers are possible: http://www.w3schools.com/sql/func_convert.asp

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.