Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Last Day of the Month

Featured Replies

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

Hi Kay,

Date(Month(BookingDate)+1, Day(1)-1, Year(BookingDate))

Go home. smirk.gif

  • Author

Mercy! Thanks MoonShadow. And yes, I will ;-)

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.

I knew this would work also:

Date(Month(BookingDate)+1, Day(1), Year(BookingDate)) -1

But your suggestion is eloquent indeed. Thank you for the valuable lesson.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.