Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"undefined 0NaN" error #19

Open
alexandrevicenzi opened this issue Aug 13, 2014 · 2 comments
Open

"undefined 0NaN" error #19

alexandrevicenzi opened this issue Aug 13, 2014 · 2 comments

Comments

@alexandrevicenzi
Copy link

Trying to use pt-BR format and I got:

Changes:

$scope.date = dateFilter(new Date(), 'dd/MM/yyyy');
$scope.minDate = '01/01/2000';
$scope.maxDate = '01/01/2099';

Not sure if this is the correct way to use for pt-BR. There's only one example available.

See here.

@gschammah
Copy link
Contributor

Hi there. date, minDate and maxDate parses date strings in yyyy-MM-dd format. Otherwise it will fail.

Alternatively you can pass a pure Date object to $scope.date. You should be able to do the same for minDate and maxDate but apparently there is a bug that ignores the day part of the Date.

@alexandrevicenzi
Copy link
Author

It's a good idea to support localization.

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

No branches or pull requests

2 participants