If one of the parameters is of an incompatible type or value, the filter will not alter the input.

Date switches

Assuming the value of the dateTime field is 2014-12-09T23:00:00 here
are the available switches you can use to format the date:

%d

Outputs the day of the month - 18

dd

The day of the month. Single-digit days will have a leading zero - 03

ddd

The abbreviated name of the day of the week. - Tue

dddd

The full name of the day of the week. - Tuesday

%h

The hour in a 12-hour clock. Single-digit hours will not have a leading zero - 12

hh

The hour in a 12-hour clock. Single-digit hours will have a leading zero - 12

%H

The hour in a 24-hour clock. Single-digit hours will not have a leading zero -
0

HH

The hour in a 24-hour clock. Single-digit hours will have a leading zero - 0

%m

The minute. Single-digit minutes will not have a leading zero - 0

mm

The minute. Single-digit minutes will have a leading zero - 00

%M

The numeric month. Single-digit months will not have a leading zero - 9

MM

The numeric month. Single-digit months will have a leading zero - 09

MMM

The abbreviated name of the month, as defined in AbbreviatedMonthNames - sep.

MMMM

The full name of the month, as defined in MonthNames - september

%s

The second. Single-digit seconds will not have a leading zeroThe second. Single-digit
seconds will not have a leading zero - 0

ss

The second. Single-digit seconds will have a leading zero - 00

%t

The first character in the AM/PM designator, if any - a

tt

The AM/PM designator, if any - a.m.

%y

The year without the century. If the year without the century is less than 10,
the year is displayed with no leading zero - 14

yy

The year without the century. If the year without the century is less than 10,
the year is displayed with a leading zero - 14

yyyy

The year in four or five digits (depending on the calendar used), including the
century. Will pad with leading zeroes to get four digits. Thai Buddhist and Korean
calendars both have five digit years; users selecting the "yyyy" pattern will see
all five digits without leading zeros for calendars that have five digits. Exception:
the Japanese and Taiwan calendars always behave as if "yy" was selected - 1914

\c

Where c is any character. Displays the character literally. Useful for escaping
characters that are usually rendered as switches (m, h, s, etc.) To display the
backslash character, use "\\" - 14