Skip to main content

Date Operators

When we need to work with dates, these operators will help with your markdown.

List of Operators

{{ year }}

Get the current year.

Example

{{year}}
<!-- 2017 -->

{{ date }}

Get the current date.

Example

{{date "DD/MM/YYYY"}}
<!-- 28/04/2015 -->

{{ moment }}

Calculate a moment in time.

Example

{{moment format="MM/DD/YYYY"}}

Calculate a moment using deal variables

Examples

{{moment deal.terms.ContractPeriod.value}}

Date Manipulation

Examples

{{moment add="days" amount="7" format="MM/DD/YYYY"}}

Date Manipulation using deal variables

Examples

{{moment
deal.terms.ContractPeriod.value
add="days"
amount="7"
format="MM/DD/YYYY"
}}

Date from now and a specific dates

Examples

{{moment "10/06/2021" "fromNow"}}

Date from now and a specific dates using deal variables

{{moment deal.terms.ContractPeriod.value "fromNow"}}

Use moment as a helper. See handlebars.moment for more details.