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.

using date within file path

Featured Replies

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

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

MM_DD_YYYY

  • Author

Thanks for your reply.

In the field the date is stored as "mm/dd/yyyy". How can I convert it to "mm_dd_yyyy"?

Thanks again.

Sig

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

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

Year ( YourField )

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.

  • Author

thanks John, the year idea makes sense. I will go with it

Have a nice day

Sig

Edited by Guest

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.