Awee

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

#TypeRequired
0stringno

Returns

string

Examples

{{ created_at | format:'YYYY-MM-DD' }}
{{ published | format:'DD/MM/YYYY HH:mm' }}

How is this guide?

On this page