About 247,000 results
Open links in new tab
  1. 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 fraction of second …

  2. 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 data type …

  3. Date and Time Data Types and Functions - SQL Server (Transact-SQL ...

    Functions that return system date and time values Transact-SQL derives all system date and time values from the operating system of the computer on which the instance of SQL Server runs.

  4. 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.

  5. 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 larger default …

  6. SET DATEFORMAT (Transact-SQL) - SQL Server | Microsoft Learn

    It doesn't affect the display of date data type values, nor their storage format in the database. Some character string formats, for example ISO 8601, are interpreted independently of the DATEFORMAT …

  7. 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 clients, …

  8. 約會時間(Transact-SQL) - SQL Server | Microsoft Learn

    由 Microsoft OLE DB provider for SQL Server 所支援的 OLE DB 語言定義 (DBGUID-SQL) 也支援 ODBC 時間戳記格式。 使用 ADO、OLE DB 與 ODBC 架構 API 的應用程式都可以使用這個 ODBC 時間戳 …

  9. time (Transact-SQL) - SQL Server | Microsoft Learn

    When you convert to date and time data types, SQL Server rejects all values it cannot recognize as dates or times. For information about using the CAST and CONVERT functions with date and time …

  10. AT TIME ZONE (Transact-SQL) - SQL Server | Microsoft Learn

    The OrderDate values are datetime and aren't stored with an offset, but are known to be Pacific Standard Time. The first step is to assign the known offset and then convert to the new time zone: