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.

payroll date

Featured Replies

hi there i just did to calculate a simple payroll date.

what ever date you enter it needs to go back to the monday of that week.

Monday is the second day of the week. Work out what the day-of-week of the date is (using the DayOfWeek function) subtract it from the date, then add 2 to it. It could be written as...

Date - DayofWeek(Date) + 2

If the date is a Sunday the calculation will return the folling day as the Monday date.

Cool. And I make it look sooooo easy!

PS the DayOfWeek function returns 1 for Sunday and 7 for Saturday, at least for the US/English/Australian version I use. This calculation may break for other localised versions (like Sweden?) that start their week on Monday -- I cannot test it so I don't know, but be aware.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.