Jump to content

This topic is 7643 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Why am I working on a Friday night? Alas. This can't be too hard but my brain has petrified - like wood, not fraidy cats!

User inputs a booking date in field BookingDate. I would like a calculation to default the InvoiceDate to the last date of the month. So I pull the month out of the BookingDate and of course no "last day of" command. How about find first date of next month, then subtract a day? Good idea, but how to find first date of next month?

Any ideas? You would have my forever gratitude!

Kay

Posted

Actually it's even simpler:

Date(Month(BookingDate)+1, 0, Year(BookingDate))

Day 0 of any month is the last day of the prior month.

This topic is 7643 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.