I understand your point.
But this is not the right place to convert Strings from the backend to
Dates. A http interceptor or something similar would be more appropriate.


On Tue, Feb 4, 2014 at 2:08 PM, Ben Lesh <notifications@github.com> wrote:

> In src/ng/directive/input.js:
>
> > @@ -89,7 +94,345 @@ var inputType = {
> >     */
> >    'text': textInputType,
> >
> > +    /**
> > +     * @ngdoc inputType
> > +     * @name ng.directive:input.date
> > +     *
> > +     * @description
> > +     * HTML5 or text input with date validation and transformation. In browsers that do not yet support
> > +     * the HTML5 date input, a text element will be used. The text must be entered in a valid ISO-8601
> > +     * date format (yyyy-MM-dd), for example: `2009-01-06`. Will also accept a valid ISO date or Date object
>
> I thought about this, but I left it as it is now because it's extremely
> common that I'm actually putting a date string I've recieved from an AJAX
> call into the model. It's very nice to have for the workflow:
>
>    1. Get some JSON data via Ajax containing dates
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/angular/angular.js/pull/5864/files#r9441282>
> .
>