MacSig Posted September 16, 2008 Posted September 16, 2008 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
mr_vodka Posted September 16, 2008 Posted September 16, 2008 I dont recommend saving any files like that. You should instead save it with something like an underscore. MM_DD_YYYY
MacSig Posted September 16, 2008 Author Posted September 16, 2008 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
mr_vodka Posted September 16, 2008 Posted September 16, 2008 Right ( "0" & Month ( YourField ); 2 ) & "_" & Right ( "0" & Day ( YourField ); 2 ) & "_" & Year ( YourField )
mr_vodka Posted September 16, 2008 Posted September 16, 2008 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.
MacSig Posted September 16, 2008 Author Posted September 16, 2008 (edited) thanks John, the year idea makes sense. I will go with it Have a nice day Sig Edited September 16, 2008 by Guest
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now