You should go without substitute in this case, because date separators vary from here to there.
Month(Get(CurrentDate) & "-" &
Day(Get(CurrentDate) & "-" &
Year(Get(CurrentDate) & ".pdf*.
for naming PDFs, I tend to use YYYYMMDD as it's an alpha-sortable version of a date. I just train users that this is a "date" that doesn't confuse anyone any where in the world.
yeah why not.
Thanks everyone! Can I pose one more question? If I am appending a PDF, I have the option to specify what the starting page number should be. Is there any way to automate this? For the script step to know how many pages already exist in the PDF without having to manually enter the new starting page number?
The following script
Enter Preview Mode 
Go to Record/Request/Page [ Last ]
Set Field [ YourFile::HowManyPages ; Get ( PageNumber ) ]
Enter Browse Mode 
will store the number of pages into HowManyPages at document creation.
You can store it in a table, together with the filename, before printing it.
Next time you can look for that info when appending, add 1 to it, append and update the HowManyPages field.
btw, if you want to use Bev's suggestion, name the file as
"WeeklyMeetingReport-" & Year(Get(CurrentDate) & SerialIncrement ( "00" ; Month(CurrentDate) ) & SerialIncrement ( "00" ; Day(CurrentDate) ) & ".pdf".
Hi! what is
? A custom function, I assume.
I would have used
Right ( "00" & Month(CurrentDate) ; 2 )
Which probably what the custom function does?
p.s. If CarrieB wants to know why I like this "alpha-sort" type of date:
These will sort together in whatever folder/directory they reside. The above shows every Monday from JAN 4th to FEB 8th. My users love this! And because the spacing is consistent (zero padded months & days), the actual date could be extracted out programmatically with the Middle() function, should that be necessary.
When you are used to Basic, Pascal, Cobol and other old fashioned langages, Right fonction is well known, SerialIncrement need to be understood
what is the purpose of you file ?
show that SerialIncrement is faster than Right.
So Right should have a larger number than SerialIncrement? Answer is in milliseconds correct? I tried 3 times and Serial was always the larger number or am I missing something? (I'm only a 1)
my results are different.