Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

dateFormat option ignored on input value #14

Closed
dimitriho opened this issue Jan 9, 2012 · 1 comment
Closed

dateFormat option ignored on input value #14

dimitriho opened this issue Jan 9, 2012 · 1 comment

Comments

@dimitriho
Copy link

The DateRangePicker does not parse the input value using the dateFormat option. Instead, it parse it in english format (mm/dd/yy).

Given this input,

<input type="text" value="09/01/2012" />

and this javascript code,

$(function(){
    $('input').daterangepicker({
        dateFormat: 'dd/mm/yy',
        arrows: true,
        datepickerOptions: {
            dateFormat: 'dd/mm/yy'
        }
    });
});

when I click on the right arrow, the input value become "02/09/2012" instead of "10/01/2012" (January, 10th in the dateFormat "dd/mm/yy").

The "Specific date" also opens the calendar on September.

@jefflembeck
Copy link
Collaborator

Retiring this project.

Thank you

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

No branches or pull requests

2 participants