

The default date format is determined by the current language setting. For example, if the two-digit year cutoff is the default 2049, the two-digit year 49 is interpreted as 2049 and the two-digit year 50 is interpreted as 1950. A two-digit year greater than the last two digits of the cutoff year is in the century that comes before the cutoff year.

Note: For Informatica, YYYY is limited to the range 1582 to 9999.Ī two-digit year that is less than or equal to the last two digits of the cutoff year is in the same century as the cutoff year. To specify an integer from 0001 to 9999 that represents the cutoff year for interpreting two-digit years as four-digit years, use the Configure the two digit year cutoff Server Configuration Option. Only four- or two-digit years are supported. M, dd, and yy represent month, day, and year in a string with slash marks (/), hyphens (-), or periods (.) as separators. The following tables show the valid string literal formats for the date data type. Supported string literal formats for date This value is used for the appended date part for implicit conversion from time to datetime2 or datetimeoffset. MM is two digits from 01 to 12 that represent a month in the specified year.ĭD is two digits from 01 to 31, depending on the month, that represents a day of the specified month. For Informatica, YYYY is limited to the range 1582 to 9999. YYYY is four digits from 0001 to 9999 that represent a year. January 1, 1 CE (Common Era) through DecemCE (OctoCE through DecemCE for Informatica) date description Propertyįor more information, see the "Backward Compatibility for Down-level Clients" section that follows. Applies to: SQL Server Azure SQL Database Azure SQL Managed Instance Azure Synapse Analytics Analytics Platform System (PDW)ĭefines a date in SQL Server.
