date


date


Reformats a date parameter using specified format.


Syntax


{{ <Parameter> | date: <String Value> }}



Arguments

Parameter - A string literal or name of the input parameter to be reformatted


String Value - The string that the contains the flags used to format the date. Below is a list of accepted flags:

Flag

Description


Flag

Description

%a

Abbreviated Weekday


%A

Full weekday Name

%b

Abbreviate month name


%B

Full month name

%c

Preferred local date and time representation


%d

Day of the month, zero-padded

%-d

Day of the month, not zero-padded


%D

Formats the date (dd/mm/yy)

%e

Day of the month, blank-padded


%F

Returns the date in ISO 8601 format (yyyy-mm-dd)

%H

Hour of the day, 24-hour clock, zero-padded


%I

Hour of the day, 12-hour clock

%j

Day of the year


%k

Hour of the day, 24-hour clock, non-zero-padded

%m

Month of the year


%M

Minute of the hour

%p

Meridian indicator


%r

12-hour time without seconds

%R

24-hour time without seconds


%T

24-hour time with seconds

%U

Week of the year starting with the first Sunday


%W

Week of the year starting with the first Monday

%w

Day of the week starting with Sunday


%x

Preferred representation for the date

%X

Preferred representation for the time


%y

Year without century

%Y

Year with century


%Z

Time zone name


Example 1:

Input


{{ '2015-06-25' | date: '%A, %B %d, %Y'}}



Output


'Thursday, June 25, 2015'



Example 2:

InputParameter Value


'2009-05-08T10:30:00'



Input


{{ InputParameter | date: 'The year was %Y, the month was %b, the day was %d and the time was %I''}}



Output


'The year was 2009, the month was May, the day was 08 and the time was 10:30'