Closed StefH closed 3 years ago
I've this expression:
"{{Format {{Now}} \"yyyy-MM-dd\"}}",
Where {{Now}} is a helper which returns the current datetime. And Format is an helper which formats the DateTime as the specified format.
{{Now}}
Format
However, this fails:
Unhandled exception. HandlebarsDotNet.HandlebarsParserException: Reached unparseable token in expression: {Now}} "yyyy-MM-dd"}}
So my question is how to properly escape the {{ for the Now?
Hello @StefH
Correct expression would look like this:
"{{Format (Now) 'yyyy-MM-dd'}}"
It's not possible to escape {{ }} inside of expression at this point.
{{ }}
Thanks !
I've this expression:
Where
{{Now}}
is a helper which returns the current datetime. AndFormat
is an helper which formats the DateTime as the specified format.However, this fails:
So my question is how to properly escape the {{ for the Now?