DateTime Data Type

See Also

Choose the DateTime data type to store values that are either dates or times, or both. A DateTime value is stored in eight bytes — two four-byte integers.

Visual FoxPro 6.0 (and Visual FoxPro 5.0) support a strict Date and DateTime format that provides year 2000 compliance. It’s recommended that you use strict date formats for all Date and DateTime constants and expressions. For more information about strict date formats, see Year 2000 Date Support in Chapter 33, “Programming Improvements” in the Programmer’s Guide.

In both Date and DateTime data types, the following rules apply: