
datetime (Transact-SQL) - SQL Server | Microsoft Learn
To use the ISO 8601 format, you must specify each element in the format, including the T, the colons (:), and the period (.) that are shown in the format. The brackets indicate that the …
FORMAT (Transact-SQL) - SQL Server | Microsoft Learn
Returns a value formatted with the specified format and optional culture. Use the FORMAT function for locale-aware formatting of date/time and number values as strings. For general …
Date and Time Data Types and Functions - SQL Server (Transact …
Date and time functions The following tables list the Transact-SQL date and time functions. For more information about determinism, see Deterministic and Nondeterministic Functions.
CAST and CONVERT (Transact-SQL) - SQL Server | Microsoft Learn
Reference for the CAST and CONVERT Transact-SQL functions. These functions convert expressions from one data type to another.
SET DATEFORMAT (Transact-SQL) - SQL Server | Microsoft Learn
The DATEFORMAT setting may interpret character strings differently for date data types, depending on their string format. For example, datetime and smalldatetime interpretations may …
datetime2 (Transact-SQL) - SQL Server | Microsoft Learn
Defines a date that is combined with a time of day that is based on 24-hour clock. datetime2 can be considered as an extension of the existing datetime type that has a larger date range, a …
date (Transact-SQL) - SQL Server | Microsoft Learn
Datetime data types allow dates in the Gregorian format to be stored in the date range 0001-01-01 CE through 9999-12-31 CE. The default string literal format, which is used for down-level …
日期與時間資料類型與函數 - SQL Server (Transact-SQL)
日期和時間函式 下表列出 Transact-SQL 日期和時間函數。 如需確定性的詳細資訊,請參閱 決定性與非決定性函數。
約會時間(Transact-SQL) - SQL Server | Microsoft Learn
由 Microsoft OLE DB provider for SQL Server 所支援的 OLE DB 語言定義 (DBGUID-SQL) 也支援 ODBC 時間戳記格式。 使用 ADO、OLE DB 與 ODBC 架構 API 的應用程式都可以使用這個 …
ISDATE (Transact-SQL) - SQL Server | Microsoft Learn
For examples of valid formats for which ISDATE will return 1, see the section "Supported String Literal Formats for datetime" in the datetime and smalldatetime topics.