date
Format a date with Day.js format tokens.
Syntax
{{ value | date:"YYYY-MM-DD" }}{{ value | date:("YYYY-MM-DD", "MM/DD/YYYY") }}Example
Basic usage
1{2 "published": "2024-12-01"3}1{{ published | date:"MMMM D, YYYY" }}1December 1, 2024Behavior
- The first parameter is the output format.
- An optional second parameter describes the input format.