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.

Date = The Day Before?

Featured Replies

  • Newbies

Don't ask me why, but I have the need to be able to set a date field to the day before whatever the field currently says the date is.

Scenario:

I have a field... "Date_Out" that is a calculated result when a "Job" is closed. I need to be able to set that date to the day before "Today". It sounded easy until I started working on it! "Date_Out = Day(Date_Out) -1". Heh. That works great until it's the first of the month! At that point the Day is either the 28th, 30th, or 31st depending on the month, and if it's New Years Day, well... you get the idea.

Has anyone else tried doing this? Any ideas? I can't seem to wrap my melted brain around the "logic" of calculating it.

Dustin

Filemaker automatically handles the previous month or year situation when you subtract numbers from dates. So, this shouldn't be a problem. Of course you must have the field set up as a date field.

BTW don't use the Day() function, just subtract 1 from the actual date:

DATE_OUT - 1

[ May 31, 2001: Message edited by: BobWeaver ]

  • Author
  • Newbies

You da' man, Bob. It seems like I keep trying to over think things! Many, many thanks to you!!!

Dustin

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.