# Html PDF TEMPLATE

**URL:** <https://community.fibery.io/t/html-pdf-template/9246>\
**Category:** Get Help\
**Created:** [July 21, 2025, 2:25pm UTC](https://community.fibery.io/t/html-pdf-template/9246 "2025-07-21T14:25:40Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eva\_Folch](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/eva_folch/32/11814_2.png) [@Eva\_Folch](https://community.fibery.io/u/Eva_Folch)\
**Post date:** [July 21, 2025, 2:25pm UTC](https://community.fibery.io/t/html-pdf-template/9246/1 "2025-07-21T14:25:40Z")

</div>

Provably, it will be a silly question, but I don’t find the solution.

I’m trying to make a template to create a quote, but I’m stuck on the quote date. Can I have a formula inside the HTML that gets the date from today?

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [July 21, 2025, 2:42pm UTC](https://community.fibery.io/t/html-pdf-template/9246/2 "2025-07-21T14:42:04Z")

</div>

You can use javascript to get the current datetime, e.g.  
`<%= new Date() %>`

Of course, you might want a nicer format, e.g.

`<%= new Date().toLocaleDateString("en-US") %>`

---

<div class="post-metadata">

**Author:** ![Matt\_Blais](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/matt_blais/32/1464_2.png) [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Post date:** [July 21, 2025, 5:37pm UTC](https://community.fibery.io/t/html-pdf-template/9246/3 "2025-07-21T17:37:55Z")

</div>

If you have a “Quote” DB, you probably want to create and fill a “Date Generated” field.

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [July 21, 2025, 5:40pm UTC](https://community.fibery.io/t/html-pdf-template/9246/4 "2025-07-21T17:40:32Z")

</div>

Indeed, you might be better off using `{{Creation Date}}` or similar

---

<div class="post-metadata">

**Author:** ![Eva\_Folch](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/eva_folch/32/11814_2.png) [@Eva\_Folch](https://community.fibery.io/u/Eva_Folch)\
**Post date:** [July 21, 2025, 5:46pm UTC](https://community.fibery.io/t/html-pdf-template/9246/5 "2025-07-21T17:46:41Z")

</div>

Yes, I thought about that, but that will never be the date that I created the PDF, but the date that I created a row-entity. Right?  
This works amazingly:  
\<%= new Date().toLocaleDateString(“en-US”) %\>  
But could I make it to format with dots, something like: 31.01.2025

---

<div class="post-metadata">

**Author:** ![Eva\_Folch](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/eva_folch/32/11814_2.png) [@Eva\_Folch](https://community.fibery.io/u/Eva_Folch)\
**Post date:** [July 21, 2025, 5:54pm UTC](https://community.fibery.io/t/html-pdf-template/9246/6 "2025-07-21T17:54:17Z")

</div>

> [@Chr1sG](#):
>
> toLocaleDateString(“en-US”)

edited:  
this works for me:  
\<%= new Date().toLocaleDateString(“fr-CH”) %\>

Thanks! I’m discovering a new world with the PDF function in Fibery. It’s one of the reasons why I’m trying to switch from Coda.

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [July 21, 2025, 5:57pm UTC](https://community.fibery.io/t/html-pdf-template/9246/7 "2025-07-21T17:57:37Z")

</div>

> [@Eva\_Folch](#):
>
> But could I make it to format with dots, something like: 31.01.2025

You can pick a locale setting to get you what you want, e.g.  
`<%= new Date().toLocaleDateString(“de-DE”) %>`

---

<div class="post-metadata">

**Author:** ![Eva\_Folch](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/eva_folch/32/11814_2.png) [@Eva\_Folch](https://community.fibery.io/u/Eva_Folch)\
**Post date:** [July 21, 2025, 5:59pm UTC](https://community.fibery.io/t/html-pdf-template/9246/8 "2025-07-21T17:59:11Z")

</div>

By the way, is there a way to make a select column to text? This is about the currency field, that is not recognized.

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [July 21, 2025, 6:05pm UTC](https://community.fibery.io/t/html-pdf-template/9246/9 "2025-07-21T18:05:10Z")

</div>

`{{SelectField.Name}}`

unless you meant a number field formatted as currency?

> [@Eva\_Folch](#):
>
> This is about the currency field, that is not recognized.

---

<div class="post-metadata">

**Author:** ![Eva\_Folch](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/eva_folch/32/11814_2.png) [@Eva\_Folch](https://community.fibery.io/u/Eva_Folch)\
**Post date:** [July 21, 2025, 6:26pm UTC](https://community.fibery.io/t/html-pdf-template/9246/10 "2025-07-21T18:26:42Z")

</div>

> [@Chr1sG](#):
>
> `{{SelectField.Name}}`

Yes! That’s it. Of course… I forgot I always have to put name to make like text, right. It coda, it was not like this. THANKS!
