Jump to content

Compiled Time stamp for name


ehigginbotham

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...