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.

Featured Replies

Hi Guys,

I am very new to Filemaker and am busy setting up a simple database. I have created 3 fields: 1) Date Time, 2) Date and 3) Time. I have a comma-delimmeted txt file with data that I have imported into this database (the date and time information from this txt file has gone into the "Date Time" field in the database. I need to separate the date information into the "Date" field and the time info into the "Time" field. I know I need to use a script which uses the left field command. Please could you advise me on how to go about this. I am using FM Pro 8.

Thanks

Shaun

What is the exact format of the imported data?

  • Author

?O,0828984177, ,0:00, 1, 12, 5437, 0,2007/03/15 07:52, 0:59, 1.89;

As you can see above the date and time are in the same "separated" group. I need to import the date and time into 2 separate fields.

Hi

if the text contais always the same number of commas

and

if the time is expressed as hh:mm

then:

calculation for date field:

Let ([

value = GetValue ( Substitute ( date time ; "," ; ¶ ) ; 9 ) ;

dat = LeftWords ( value ; 1 );

d = Right ( dat ; 2 ) ;

m = Middle ( dat ; 6 ; 2 ) ;

y = Left ( dat ; 4 )

];

Date ( m ; d ; y )

)

calculation for time field:

Let ([

value = GetValue ( Substitute ( date time ; "," ; ¶ ) ; 9 ) ;

h = MiddleWords ( value ; 2 ; 1 ) ;

m = RightWords ( value ; 1 )

];

Time ( h ; m ; 0 )

)

  • Author

Great, thanks alot for your help, I'll give this a go.

Create an account or sign in to comment

Important Information

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

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.