ng-bs-daterangepicker icon indicating copy to clipboard operation
ng-bs-daterangepicker copied to clipboard

ng-model notworking, when assigen iso-time string

Open NSLog0 opened this issue 9 years ago • 2 comments

I am encounter with ng-model, When I get time from server, Then I set a time to ng-model like this

$scope.date_rang.startDate = data.startDate; $scope.date_rang.endDate = data.endDate;

and data contain '2016-01-25T08:56:33.216Z' , Then I try to another way use new Date(), However, both way it not working for me

How can fix it or any solution

Thank you.

NSLog0 avatar Jan 25 '16 09:01 NSLog0

Can any one help me??

NSLog0 avatar Jan 26 '16 03:01 NSLog0

Did you try to transform these dates to object moment ?

ramilani12 avatar Feb 17 '16 13:02 ramilani12