format
Format formats a time.
Format formats a time.Time value using a date format string. Strings are passed through unchanged.
Input
string time.Time
Parameters
| # | Type | Required |
|---|---|---|
| 0 | string | no |
Returns
string
Examples
{{ created_at | format:'YYYY-MM-DD' }}
{{ published | format:'DD/MM/YYYY HH:mm' }}How is this guide?