Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Angular 1.3: date-picker cannot interpret value from new Date() #2834

Closed
DerekDomino opened this issue Oct 15, 2014 · 3 comments
Closed

Angular 1.3: date-picker cannot interpret value from new Date() #2834

DerekDomino opened this issue Oct 15, 2014 · 3 comments

Comments

@DerekDomino
Copy link

The break occurred when updating from angularjs-1.3.0-rc.3 to rc.4

When binding a scope property to a ui-date-picker input, the date displayed in the input field is not correct anymore:

$scope.theDate = (new Date()).toString();

Displayed value depends on angularjs version:

  • with angularjs 1.3.0-rc.3: '14/10/2014' <- OK
  • with angularjs 1.3.0-rc.4: '01/02/2021' <- KO
@homerjam
Copy link

FWIW I think this is possibly related to #2659

@antoinepairet
Copy link

Should be fixed by 23936f9
rgds

@karianna karianna added this to the 0.13.0 milestone Feb 21, 2015
@Lak1890
Copy link

Lak1890 commented Mar 2, 2015

Dear Sir,
I have created an input tag for my datepicker as follows:
input type="date" placeholder="" class="ngcalenderwidth" style="width: 80%;height:30px" my-datepicker type="text" ng-model="StartDate" readonly="true"
In my controller, I am not able to get the ng-model value : start date. I mean $scope.StartDate gives me Nan-undefined-Nan ., following which i am not able to proceed.
This works fine in chrome, but not in Firefox or IE9 and above.
What can be the reason?
Any help is highly appreciated..!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants