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.

Building a list of work weeks by calendar date

Featured Replies

I'm trying to build a payroll module that tracks total hours based on calendar days and work weeks.

I would like to have record 1 date field to be January 1 and have each successive record add one day to the calendar.

Day 1 = January 1

Day 2 = January 2

Day 32 = February 1

Day 365 = January 31

Etc.

I am hoping to total payroll hours per day and per week, with the year broken into 52 weeks.

Is there a function that can add one day to the preceeding day and keep the month and date accurate?

I don't if I explained this right but I still hope someone understands what I am talking about and can aim me in the right direction.

Thanks,

Jarvis

Filemaker handles date arithmetic automatically. In other words, if you take the contents of a date field, add one to it, and put the result into a date field, you will get the result you want.

Yes. And to figure your weeks, you can do some modulo-7 arithmetic or something of the sort, if you need to. Because of leap years, you may find it more convenient to have a table of dates (it's actually very easy to script) of the next ten or twenty or whatever years, in order to keep your weeks lined up right.

-Stanley

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.