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 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")); 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.