<td>{{item.timeSlot| date:'h:mm a'}}</td>
How To Use
date_expression | date[:format[:timezone[:locale]]]
Description
Where:
expression
- is a date object or a number (milliseconds since UTC epoch) or an ISO string (https://www.w3.org/TR/NOTE-datetime).
format
- indicates which date/time components to include. The format can be predefined as shown below (all examples are given for
en-US
- ) or custom as shown in the table.
'short': equivalent to'M/d/yy, h:mm a'(e.g.6/15/15, 9:03 AM)'medium': equivalent to'MMM d, y, h:mm:ss a'(e.g.Jun 15, 2015, 9:03:01 AM)'long': equivalent to'MMMM d, y, h:mm:ss a z'(e.g.June 15, 2015 at 9:03:01 AM GMT+1)'full': equivalent to'EEEE, MMMM d, y, h:mm:ss a zzzz'(e.g.Monday, June 15, 2015 at 9:03:01 AM GMT+01:00)'shortDate': equivalent to'M/d/yy'(e.g.6/15/15)'mediumDate': equivalent to'MMM d, y'(e.g.Jun 15, 2015)'longDate': equivalent to'MMMM d, y'(e.g.June 15, 2015)'fullDate': equivalent to'EEEE, MMMM d, y'(e.g.Monday, June 15, 2015)'shortTime': equivalent to'h:mm a'(e.g.9:03 AM)'mediumTime': equivalent to'h:mm:ss a'(e.g.9:03:01 AM)'longTime': equivalent to'h:mm:ss a z'(e.g.9:03:01 AM GMT+1)'fullTime': equivalent to'h:mm:ss a zzzz'(e.g.9:03:01 AM GMT+01:00)
timezone
- to be used for formatting. It understands UTC/GMT and the continental US time zone abbreviations, but for general use, use a time zone offset, for example,
'+0430'locale
- is a
string
- defining the locale to use (uses the current
LOCALE_IDby default)










