Convert Datetime to String in Sql Server
Convert Datetime to String in Sql Server 0 Feb 22 2006 4:26PM CONVERT(CHAR(19), CURRENT_TIMESTAMP, 0) 1 02/22/06 CONVERT(CHAR(8), CURRENT_TIMESTAMP, 1) 2 06.02.22 CONVERT(CHAR(8), CURRENT_TIMESTAMP, 2) 3 22/02/06 CONVERT(CHAR(8), CURRENT_TIMESTAMP, 3) 4 22.02.06 CONVERT(CHAR(8), CURRENT_TIMESTAMP, 4) 5 22-02-06 CONVERT(CHAR(8), CURRENT_TIMESTAMP, 5) 6 22 Feb 06 CONVERT(CHAR(9), CURRENT_TIMESTAMP, 6) 7 Feb 22, 06 CONVERT(CHAR(10), CURRENT_TIMESTAMP, 7) 8 16:26:08 CONVERT(CHAR(8), CURRENT_TIMESTAMP, 8) 9 Feb 22 2006 4:26:08:020PM CONVERT(CHAR(26), CURRENT_TIMESTAMP, 9) 10 02-22-06 CONVERT(CHAR(8