Answers for "sql date formates"

SQL
-1

date format in sql

SELECT CONVERT(VARCHAR, GETDATE(),101) AS DATE
SELECT CONVERT(VARCHAR, GETDATE(),102) AS DATE
SELECT CONVERT(VARCHAR, GETDATE(),103) AS DATE
SELECT CONVERT(VARCHAR, GETDATE(),104) AS DATE
SELECT CONVERT(VARCHAR, GETDATE(),105) AS DATE
SELECT CONVERT(VARCHAR, GETDATE(),106) AS DATE

SELECT DATE = FORMAT(GETDATE(), 'dd-MM-yyyy')
Posted by: Guest on June-24-2021
2

SQL Date Format

SELECT FORMAT(dbo.column, 'M/dd/yyyy')
Posted by: Guest on December-09-2020
0

sql convert date to string yyyy-mm-dd

select CONVERT(char(10), GetDate(),126)
/* 2020-12-23 */
Posted by: Guest on December-23-2020
1

sql date format

default date format of my sql - YYYY-MM-DD
Posted by: Guest on March-18-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language