ehigginbotham Posted July 22, 2012 Share Posted July 22, 2012 I need to write a rule that will name my output file with a static name followed by the date. I would like to add a time stamp to the end of the date so that if I had to run two of these jobs in the same day, the files would not overwrite. I do not see any code for the timestamp. Anyone know what it is? my date rule //date rule var todaysdate = Today(); return (FormatDate(todaysdate, "mmm dd, y")); my rule so far is on the OnNewoutputfile callback rule. //NewOutputFileName rule FusionPro.Composition.outputFileName = "MKT-271/MKT-271" +"_"+ Rule("r_date") + ".pdf"; thanks Quote Link to comment Share on other sites More sharing options...
clboehm Posted July 23, 2012 Share Posted July 23, 2012 Hi Eric, Try this: var todaysdate = Today(); return (FormatDate(todaysdate, "mm/dd/y - HH:MM:ss")); Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted July 23, 2012 Share Posted July 23, 2012 It's actually "nn" for minutes. The full documentation is here: http://forums.pti.com/showpost.php?p=195 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.