Question : SQL Server format datetime
Answered by : kyle-hill
SELECT FORMAT(CURRENT_TIMESTAMP, 'yyyy-MM-dd hh:mm:ss tt')
Source : https://stackoverflow.com/questions/23837672/how-to-format-datetime-in-sql-server | Last Update : Wed, 30 Jun 21
Question : format date sql server
Answered by : you
SELECT FORMAT(GETDATE(), 'yyyy-MM-dd') AS FormattedDate;
Source : | Last Update : Mon, 18 Sep 23
Question : sql datetime format
Answered by : jelmer-24wuowc6t70y
SELECT DATE_FORMAT(DATE, '%m %d %Y') FROM table;
/*Example with now*/
SELECT DATE_FORMAT(NOW(), '%m %d %Y');
Source : | Last Update : Mon, 26 Sep 22
Question : SQL Date Format
Answered by : david-richardson
SELECT FORMAT(dbo.column, 'M/dd/yyyy')
Source : | Last Update : Wed, 16 Dec 20
Question : sql format time
Answered by : amrit-dumre
-- date format
declare @dat datetime = getdate();
select FORMAT(@dat, N'yyyy-MM-dd hh:mm tt') -- returns 2022-05-09 09:35 PM
-- similar to c# .ToString("yyyy-MM-dd hh:mm tt")
Source : | Last Update : Mon, 05 Sep 22
Question : sql time format
Answered by : tanishq-vyas
DATE - format YYYY-MM-DD
DATETIME - format: YYYY-MM-DD HH:MI:SS
TIMESTAMP - format: YYYY-MM-DD HH:MI:SS
YEAR - format YYYY or YY
Source : | Last Update : Thu, 14 May 20
Question : date time format in sql
Answered by : you
SELECT FORMAT(GETDATE(), 'yyyy-MM-dd HH:mm:ss') AS FormattedDateTime;
Source : | Last Update : Tue, 19 Sep 23
Question : sql date format
Answered by : glamorous-grasshopper-t3vyrwhwu2yd
default date format of my sql - YYYY-MM-DD
Source : | Last Update : Thu, 25 Mar 21