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.

Calculation with date as text

Featured Replies

  • Newbies

Hi,

 

I haven't use Filemaker since Version 7 so very, very rusty at present.  I'd like help with a calculation please.

 

I have a date field that comes out as 2/3/2013  or 16/3/2013.

 

I would like a result that gives me 02032013 or 16032013 with the calculation result as text that I can concantenate with other field text to use as a primary key identifier.

 

Thanks.

Right ( "00" & Day ( Date ) ; 2 ) & Right ( "00" & Month ( Date ) ; 2 ) & Year ( Date )

  • Author
  • Newbies

Thank you, it worked perfectly.  Now to get my head around the logic :logik:

Hi FMRusty,

I would suggest not using meaningful data as 'primary key identifier' because if a mistake is made and you change the date you will break your relationships. Primary keys should always be meaningless. :-)

You also risk breaking your relationships if you change your date format at the OS level. Just something to seriously consider.

Thank you, it worked perfectly. Now to get my head around the logic :logik:

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.