[SQL]各式各樣的GETDATE()時間格式轉換CONVERT
-- Microsoft SQL Server T-SQL date and datetime formats -- Date time formats - mssql datetime -- MSSQL getdate returns current system date and time in standard internal format SELECT convert(varchar, getdate(), 100) - mon dd yyyy hh:mmAM (or PM) - Oct 2 2008 11:01AM SELECT convert(varchar, getdate(), 101) - mm/dd/yyyy - 10/02/2008 SELECT convert(varchar, getdate(), 102) - yyyy.mm.dd - 2008.10.02 SELECT convert(varchar, getdate(), 103) - dd/mm/yyyy SELECT convert(varchar, getdate(), 104) - dd.mm.yyyy SELECT convert(varchar, getdate(), 105) - dd-mm-yyyy SELECT convert(varchar, getdate(), 106) - dd mon yyyy SELECT convert(varchar, getdate(), 107) - mon dd, yyyy SELECT convert(varchar, get...