Printing a date field to a specific format in PDF

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Triggerz
    Senior Member
    • May 2024
    • 134

    #1

    Printing a date field to a specific format in PDF

    Hi,

    I created a PDF template and I am trying to display the dateQuoted field in the PDF as February 8, 2026.

    I tried the following code {{dateFormat dateQuoted format='MMMM DD,YYYY'}} but instead of displaying the correct date with the format I want, it displays the value 'True'

    Need help on the correct code that i should use.

    Thanks in advance
  • victor
    Active Community Member
    • Aug 2022
    • 1128

    #2
    You are using incorrect placeholders. Specifically, you don't use "_RAW".
    Your placeholder should look something like this:

    Code:
    {{dateFormat dateQuoted_RAW format='MMMM DD, YYYY'}}
    This is described in detail in the documentation: https://docs.espocrm.com/user-guide/...ime-formatting.

    Comment

    • Triggerz
      Senior Member
      • May 2024
      • 134

      #3
      Thank you so much victor I appreciate your response. That addressed my concern.

      Comment

      Working...