My dates come out of the database looking like this: 2013-11-21 17:43:20
I\'m trying to user Angular\'s date filter to turn them into something prettier
The date format you specified is wrong YYYY
should be yyyy
, look at the documentation for other example.
Additionally, the date string you are trying to format does not match the specification that Angular has.
Date to format either as Date object, milliseconds (string or number) or various ISO 8601 datetime string formats (e.g. yyyy-MM-ddTHH:mm:ss.SSSZ and its shorter versions like yyyy-MM-ddTHH:mmZ, yyyy-MM-dd or yyyyMMddTHHmmssZ). If no timezone is specified in the string input, the time is considered to be in the local timezone.
Wherever you are retrieving the original string from, I suggest you store/try to retrieve it in one of these formats.
Example JSFiddle using a correct format.