fragaria / angular-daterangepicker

Angular.js wrapper for dangrossman/bootstrap-daterangepicker
MIT License
519 stars 372 forks source link

date range format is not working #262

Closed prashant93 closed 5 years ago

prashant93 commented 7 years ago

Hi I have applied date format as YYYY-MM-DD(screen shot 1) it's working but it's not working when applied MM-DD-YYYY(screen shot 2).

My conclusion is only YYYY-MM-DD format is only working. I tried but not figured the issue.

image

image

riteshthakur commented 7 years ago

$scope.opts = { autoApply: true, locale: {

        applyClass: 'btn-green',
        applyLabel: "Apply",
        fromLabel: "From",
        format: "MM-DD-YYY",
        toLabel: "To",
        cancelLabel: 'Cancel',
        customRangeLabel: 'Custom range'

    }

you can try this 1... see format here