Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 3529 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

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
Posted

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 ) 
  ) 
)

Posted

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

Posted (edited)

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
Posted

​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?

Posted

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?

This topic is 3529 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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