angular / code.angularjs.org

code.angularjs.org
151 stars 747 forks source link

Make 'T' delimiter optional in ISO8601 strings #17

Closed cerivera closed 9 years ago

cerivera commented 9 years ago

According to Wikipedia’s article on the ISO 8601 format, the ’T’ delimiter is optional and can be omitted. This allows PostgreSQL datetime strings to be filtered.

This was not supported before this patch: {{ “2015-03-27 18:24:49.324101” | date:’short’ }}

Even though this worked: var myDate = new Date('2015-03-27 18:24:49.324101') ... {{ myDate | date:'short' }}