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

Start Of Month Function
Dates Times Class

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

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

Examples:
    StartOfMonth(#01/15/96#) = #01/01/96#
    StartOfMonth(#12/31/96#) = #12/01/96#
    StartOfMonth(#12/01/96#) = #12/01/96#
    StartOfMonth(#02/29/96#) = #02/01/96#
See also:
    EndOfMonth Function
vDate: The date whose month and year components are examined to determine the date of the first day of the month. Function returns Null if vDate is Null or cannot be fixed up to a Date.

Note: This function DOES support pre-1900 Date/time values.

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