YearFromDateTime (Reserved Word)

image\trumpet2.gif Disclaimer

Returns the year for the specified DateTime value.

YearFromDateTime(dDateTime);

Where dDateTime is a double-precision decimal expression representing the Julian Date (since 1900) and time (since midnight).

Remarks

If a specific date is entered for the numeric expression, it must be a valid Julian date between January 1, 1900 and February 28, 2150, expressed in DateTime format.

Examples

Value1 = YearFromDateTime(37564.61200);  returns a value of 2002 for the specified DateTime of 37564.61200 (11/4/2002 2:41:17 PM).