Date and Time Data

Date and time data consists of valid date or time combinations. For example, valid date and time data includes both “4/01/98 12:15:00:00:00 PM” and “1:28:29:15:01 AM 8/17/98”. Date and time data is stored using the datetime and smalldatetime data types in Microsoft® SQL Server™. Use datetime to store dates in the range from January 1, 1753 through December 31, 9999 (requires 8 bytes of storage per value). Use smalldatetime to store dates in the range from January 1, 1900 through June 6, 2079 (requires 4 bytes of storage per value).

See Also
Using Data Types datetime and smalldatetime
Using Date and Time Data  

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.