Defaulting date field

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

How can I default a date field to the first of the current month and year?

Thanks

Regards
 
Hi John

Use for year
=DateSerial(Year(Date())+0,1,1)

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

Hope this helps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top