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

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

Recommended Posts

Posted

Hello folks,

I'm writing a script to export some files from a container field.

I need to order the exported files by a field called "manufacturing date" that has the format "mm/dd/yyyy" but because of the slashes FM doesn't create a folder called "mm/dd/yyyy" but three folders (one inside the other one) "mm" "dd" "yyyy" since it interprets the slashes as a path subfolder.

Is there a way to tell it that the field must use as is without

creating any subfolder?

Thanks and have a nice day!

Sig

Posted

I dont recommend saving any files like that. You should instead save it with something like an underscore.

MM_DD_YYYY

Posted

Right ( "0" & Month ( YourField ); 2 ) & "_" &

Right ( "0" & Day ( YourField ); 2 ) & "_" &

Year ( YourField )

Posted

BTW, it may make sense to save it as YYYY_MM_DD especially if you plan on saving these files for longer than a year. It will sort better in your directory folder.

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