change a date to the end of the month

  • Thread starter Thread starter Jerry Crosby
  • Start date Start date
J

Jerry Crosby

How do I convert a given date to the last day of the same month, taking into
consideration that the last day of the month varies by month. I'm willing
to disregard leap year.

Example: 10/3/05 becomes 10/31/05.

Thanks in advance.

Jerry
 
Try:
DateSerial(Year([DateExpression]), Month([DateExpression])+1, 0)
 

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