Answers for "get yyyy-mm-dd from yyyymm in sql server"

SQL
0

sql server date format yyyy-MM-ddThh:mm:ss

select REPLACE(convert(varchar, getdate() , 20), ' ', 'T')
Posted by: Guest on June-25-2021
-1

sql server date format yyyy-mm-dd

convert(varchar, [column_date], 20) --(date or datetime) to yyyy-MM-dd HH:mm:ss
convert(varchar, [column_date], 23) --(date or datetime) to yyyy-MM-dd

--ref https://www.mssqltips.com/sqlservertip/1145/date-and-time-conversions-using-sql-server/
Posted by: Guest on March-30-2021

Code answers related to "get yyyy-mm-dd from yyyymm in sql server"

Code answers related to "SQL"

Browse Popular Code Answers by Language