I'm having problems when I select a date column in SQL Server. It turns out that my data is in the dd/mm/aaaa
format and when I select that column the SQL inverts getting aaaa-dd-mm
and in fact it would have to be aaaa-mm-dd
.
This happens on some dates as 02/12/2014
it converts to 2014-02-12
.
Column type is datetime2(7)