angular-datepicker icon indicating copy to clipboard operation
angular-datepicker copied to clipboard

format issue

Open pavansystems opened this issue 9 years ago • 13 comments

Hi, I use a format of dd/MM/yyyy. But when the user types the date directly into the input field it uses MM/dd/yyyy. I suppose the input validator is not taking the format into account when parsing...

pavansystems avatar Oct 06 '15 03:10 pavansystems

Also having this problem.

imbenclifford avatar Oct 06 '15 13:10 imbenclifford

m2

xskid avatar Oct 06 '15 14:10 xskid

+1

rayronvictor avatar Oct 06 '15 19:10 rayronvictor

+1

nrcrabbe avatar Nov 26 '15 00:11 nrcrabbe

Same issue and it's very problematic :/ If anyone have a solution to skirt this issue ? I tried to re-format the input value when a user change the input by adding a ng-blur fonction :

$scope.date = moment($scope.date, 'DD/MM/YYYY').format('MM/DD/YYYY');

This work fine, but when a user just leave without change the input, the date is invalid...

qmorel avatar Jan 09 '16 11:01 qmorel

Yeah, its very problematic for my app too

knvpk avatar Jan 10 '16 03:01 knvpk

+1

engbibi avatar Feb 04 '16 11:02 engbibi

@qmorel I do a similar thing and do the same when the controller loads.

imbenclifford avatar Feb 04 '16 14:02 imbenclifford

+1

adamkolar avatar Feb 11 '16 19:02 adamkolar

Having the same issue. I will try to submit a PR.

tfoxy avatar Feb 18 '16 15:02 tfoxy

This issue was fixed by #251. It should be closed.

tfoxy avatar Mar 17 '16 01:03 tfoxy

This is not working. I tried using version 2.0.1 and 2.0.3.

robbporto avatar Apr 25 '17 14:04 robbporto

There are newer versions, but they were not released on bower or npm. You should install them from a git commit hash.

tfoxy avatar Apr 26 '17 12:04 tfoxy