SQL query to convert DD/MM/YYYY to YYYY-MM-DD
SELECT CONVERT(varchar(10), CONVERT(date, '13/12/2016', 103), 120)
SQL query to convert DD/MM/YYYY to YYYY-MM-DD
SELECT CONVERT(varchar(10), CONVERT(date, '13/12/2016', 103), 120)
SQL MM/dd/yyyy format
SELECT CONVERT(VARCHAR(11), GETDATE(), 101) AS [MM/DD/YYYY]
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/
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us