Skip to content

Error: [ngModel:datefmt] Expected 2017-02-03 to be a date #10

@Kamaw

Description

@Kamaw

hey,

when I use your code I got this error:

Error: [ngModel:datefmt] Expected 2017-02-03 to be a date http://errors.angularjs.org/1.5.3/ngModel/datefmt?p0=2017-02-03 at ionic.bundle.js:13438 at Array.<anonymous> (ionic.bundle.js:36469) at ngModelWatch (ionic.bundle.js:40103) at Scope.$digest (ionic.bundle.js:30230) at Scope.$apply (ionic.bundle.js:30503) at done (ionic.bundle.js:24824) at completeRequest (ionic.bundle.js:25022) at XMLHttpRequest.requestLoaded (ionic.bundle.js:24963)

html:
<input type="date" placeholder="Birthday" class="textbox-n" ng-model="data.birthday">

the Birthday type is Date not string and I got this error, I don't know why !!

cya

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions