Hello,
I need help finding the correct string to return today's date in a Doc Merge Template. In PDF Manager I used a smarty modifier, but I'm having trouble
moment().calendar(referenceDay)
Hello,
I need help finding the correct string to return today's date in a Doc Merge Template. In PDF Manager I used a smarty modifier, but I'm having trouble
moment().calendar(referenceDay)
I am not familiar with Doc Merge but if you check the Template Assistant in the help at the bottom of the page:
it suggests functions like today and now:
and you can copy to clipboard from there.
FrancescaS
I have tried the template assistant functions for today {!formula value='today('} comes up as undefined on the document.
Kate Rose instead of {!formula value='today('} you need {!formula value='today()'}
i.e. a closing parenthesis.
I just tested with a fresh doc the following two:
and they generated the following:
I'll raise an Issue with the product group too to ensure this experience is improved - thank you for flagging!
I've always used the following without any issues;
{!date format='DD-MMM-YYYY'}
So this gives you the current date and also allows you to format all in one tag.
Hope that helps,
Vincent
.
CRM Business Consultant
Also, you may check out the Doc Merge Appendix to find a format that works for you.
This worked! Thank you!