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.

Converting Text to Date

Featured Replies

  • Newbies

Hello,

I've imported a .csv file that has the date formatted as yyyy-mm-dd, it imported into FMP as a text field. Is there a way to convert that field to a date with the mm-dd-yyyy date format? I've searched the forums and couldn't find anything specifically talking about it.

 

Thanks,

Jim

 create a calculation field

remember to back up first.

 

Let([
adj =Substitute ( YourImportedTextField ; "/" ; ¶ ) ;
month = GetValue ( adj ; 2 ) ;
day = GetValue ( adj ; 3 ) ;
year = GetValue ( adj ; 1 )
];
Date ( month ; day ; year )
)

Or, actually, since the OP indicated that the incoming data is separated by dashes rather than slashes, change Robert Taylor's calculation to 

adj =  Substitute(YourImportedTextField; "-"; ¶);

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.