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.

Featured Replies

IS there a function to recognise that given date is the last day of the month ...

Thanks

I don't know what information you are starting with (current month? current date?), so I can't give you an exact forumla. The principle is to take the first day of the next month and subtract one from the date (11/1/2002 - 1 = 10/31/2002). The advantage of this approach is you automatically take leap years into account.

-bd

No there is no one function that will do it, but you could get there with a formula combining the Case( ) and Month( ) functions, along the lines of:

Case(Month(GivenDate + 1) <> Month(GivenDate), "**Last Day of Month**")

  • Author

I mean it is a given date ...how do we know it is the last day of that given date

Example: any given date: 2002-8-30 ...not the last day of that month of that given date (2002-8-30)

but 2002-8-31 ...it is the last day of that month of the date 2002-8-31

The way u said is good ...can we also calcualte next month? moth(givandate) +1 ...is that correct?

Thanks

  • Author

Dear Cobaltsky,

You are so intelligent ..thanks

The formula I suggested should work for any date which is supplied as 'GivenDate'.

As regards your second question about calculating the next month, there is a problem with your suggestion, Month(GivenDate) + 1 in that if GivenDate is in December, it will return 13. However Month(Month(GivenDate) + 1) will work for all cases.

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.