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.

How to convert total number to Date

Featured Replies

  • Newbies

How to convert number to Date

Exaple;

total number =5968

to

17 year,2 month, 0 day

thanks

Can you explain your request in more detail? "17 year,2 month, 0 day" is not a date. 5968 days would translate to roughly 16 years and 4 months - and I cannot see the logic that would produce the result you want.

Filemaker represents dates internally as the number of days since 1/1/0001.

Hence, you can just set a field (of type date) equal to 5968, and then use the Month, Day, and Year functions on that field, to return the month, day, and year offsets relative to 1/1/1. Note that this will include leap years. This would give 5/4/17.

If you want to make the returned date relative to some other date, say, January 1, 2010 (733773 days after 1-1-0001), you would instead set date to 733773 + 5968.

There is also a function on Brian Dunning's site that will take a julian date number and convert it to a gregorian or julian date which may be of interest. http://www.briandunning.com/cf/239 -- note commas in function should be changed to decimals.

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.