DatePart function
Syntax
DatePart(datetime_value)
Description
Use the DatePart function to determine a date based on a provided DateTime value.
Returns
Returns a Date value equal to the date part of a specified DateTime value.
Example
The following statement sets &D2 to a Date value for 11/12/1997:
&D1 = DateTimeValue("11/12/1997 10:23:15 AM");
&D2 = DatePart(&D1);