<-- Previous || Up || Next -->

First Day Of Month Function
Dates Times Class

Public Function FirstDayOfMonth( _
    ByVal vDate As Variant _
    ) As Variant

Returns the first day in the month given a date value.

Examples:
    FirstDayOfMonth(#01/15/96#) = #01/01/96#
    FirstDayOfMonth(#12/31/96#) = #12/01/96#
    FirstDayOfMonth(#12/01/96#) = #12/01/96#
    FirstDayOfMonth(#02/29/96#) = #02/01/96#
See also:
    LastDayOfMonth Function
    FirstDayOfWeek Function
vDate: The date whose month and year components are examined to determine the first day of the month. Function returns Null if vDate is Null or cannot be fixed up to a Date.
v2.0 Change: This function has been renamed from StartOfMonth to FirstDayOfMonth.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.