Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

  • Newbies
Posted

Hello. I have no experience with FileMaker scripting. I have been asked to convert the "01-May-2008 12:21:55 PM PDT" to a "Month,Day,Year" format. Can anyone point me in the right direction? Or from the kindness of your heart, can someone whip up a script for me??

Thanks a head of time,

Joe Young

Posted

You need a calculation, not a script. Try:


Date( 

Int( Position( "janfebmaraprmayjunjulaugsepoctnovdec", Left( MiddleWords( Imported, 2, 1 ), 3 ), 1, 1 ) / 3 ) + 1, 

LeftWords( Imported, 1 ), 

MiddleWords( Imported, 3, 1 )

)

Make the result a Date - this will convert the imported text into a valid Filemaker date, which can then be formatted any way you like.

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