Skip 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.

Countdown Timer to specified date (IE; Christmas)

Featured Replies

Hi guys

I am trying to figure out a way of having a countdown timer to a specified date that never changes such as Christmas Day or July 4th (as opposed to say Easter) so for example if today was December 1st my calculation script would return a numerical answer of 24. Being the remaining number of days till Christmas Day. If I was counting down to July 4th and the current date was June 29th the calculation would return '5'.

Can anyone help me or suggest an easy calculation.

aTdHvAaNnKcSe

Hi Nelly,

This should do the trick if its a fixed date you never want to change:

Define a unstored calculation field, result equal to Number, with the following calculation

Date(12; 24; 2003) - Status(CurrentDate)

If you want to be able to enter any date in the future, and see how many days there are until that date, you need to define a Date field, which must be validated by a calculation that the date is higher than the current date, and change the above unstored calculation field to use that instead of the Date function.

I have enclosed a small testdatabase in fp5 format which you can download and see the definitions.

Just my 0.02

testdate.zip

  • Author

Excellent!

Thanks a bunch, worked like a dream and didn't think it would be as simple as that. I have another one, possibly as simple?

If I have a start time for an event and a finish time, how do I work out the duration of the event? I have tried to use the following but to no avail...Can you show me where I am going wrong?

(Time(Start Time, Start Time, Start Time) - Time(Finish Time, Finish Time, Finish Time))

Many thanks.

Fastest way to show you is in the field definitions of the enclosed small FP5 database.

Just my 0.02

TestTime.zip

  • Author

great thanks very much!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.