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 can I convert this timestamp into a FMP timestamp?

Featured Replies

I have imported a bunch of data from a third party that has all the timestamps formatted like this: 2014-01-17 17:08:54

How can I convert it into a timestamp that FIleMaker will recognize?

Edited by HALBURN

How can I convert it into a timestamp that FIleMaker will recognize?​

Parse out the components and pass them to Timestamp() – namely:

Let (
  ts = YourTable::yourField ;
  Timestamp (
    Date ( Middle ( ts ; 6 ; 2 ) ; Middle ( ts ; 9 ; 2 ) ; Left ( ts ; 4 ) ) ;  
    RightWords ( ts ; 1 ) 
  ) 
)

  • Author

thanks eos!

Looks like a standard SQL timestamp format, should import into a FileMaker timestamp field correctly as is.

Looks like a standard SQL timestamp format, should import into a FileMaker timestamp field correctly as is.

​It will "import into a FileMaker timestamp field correctly as is" only if the Filemaker file is using YYYY-MM-DD as its date format.

Edited by comment

​It will "import into a FileMaker timestamp field correctly as is" only if the Filemaker file is using YYYY-MM-DD as its date format.

​I'm not familiar with this, how do I check what date format the FileMaker file is using? Do you mean the formatting for the particular field?

​Do you mean the formatting for the particular field?

​No, I mean the date format in use by the file. This is the format which must be used when entering dates (regardless of how a date field is formatted to display). It can be either the short date format of the OS under which the file was created, or the short date format of the current OS - see: http://www.filemaker.com/help/14/fmp/en/html/create_db.8.7.html

Awesome, thanks for the info! I don't know that I've ever changed that from the default, but good to know it's there. One more question about that if you don't mind... when using something like the get server timestamp function, does it consider the computer hosting the solution as the current OS? Any reason to be concerned about getting back improperly formatted data from FMS?

That's a good question. I am afraid I don't know the answer, and at this moment have no way of finding out.

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.