Closed
Description
This might be an issue with the node version I'm using but I'm not sure.
Using an expression as follows works fine
{{ new Date($page.frontmatter.date) }}
However, if I pass the date as a string directly like so
{{ new Date("2017-05-08 09:50:00 EST") }}
the build fails. The error I get is that I should
- avoid using JavaScript keyword as property name: "new"
Raw expression: {{ new Date("2017-05-08 09:50:00 EST") }}
Do expressions not support passing arguments as strings to constructors?
Metadata
Metadata
Assignees
Labels
No labels