Calculate first and last day of the month

jevans

Registered User.
Local time
Today, 23:45
Joined
Oct 11, 2000
Messages
23
I have a form with to fields "Begindate" and "Enddate". I would like to have these fields on form open generate the first and last days of the current month automatically.

Thank you, in advance!
Jerry
 
This will give you the first day of the current month:

=DateSerial(Year(Date()),Month(Date()),1)

and this the last day:

=DateSerial(Year(Date()),Month(Date())+1,0)
 

Users who are viewing this thread

Back
Top Bottom