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 5727 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a file that I am trying to import into filemaker.

The date is set up as follows:

May 1, 2009

How do I convert those dates to something that filemaker recognizes as a date. I want to be able to sort and find on all these dates. Right now I am importing them into a field that is defined as a date but it displays a question mark.

I feel like this is one of those things that should be so simple, but I cant find any solutions. Do I have to write a custom function for this?

Posted

No need of a custom function...

Only this calc:

Let([

m = Ceiling ( Position ( "JanFebMarAprMayJunJulAugSepOctNovDec" ; Left ( yourField ; 3 ) ; 1 ; 1 ) /3 ) ;

d = MiddleWords ( yourField; 2 ; 1 );

y = RightWords ( yourField ; 1 )

];

Date ( m ; d ; y )

)

( yourField is the TEXT field where you stored the imported date )

Posted

sorry may was a bad example. It is not a 3 character month is is the whole word spelled out so the length will vary.

The day also changes because they are giving me one character days for 1-9.

I will look more closely at what you sent me and see if I can modify it.

Posted

It's not important if there is the whole name, the calculation will work the same way.

Do not modify the calc !

Edit: the one important thing is that there is a space between each value.

This topic is 5727 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.