I want to change from MM/YYYY to YYYY/MM/DD. Even if you change format to YYYY/MM/DD, the calendar title will be MM/YYY.

For example Calendar Top Month and Year 'Apr 2019' > '2019 Apr' , 'May 2019' > '2019 May' I want to change this format. (MM/YYYY > YYYY/MM)

https://gist.githubusercontent.com/dangrossman/14db17599e24652db7401ed2448eb91a/raw/2200731a4b0427c4077444263aa6f830115f0730/example2.js

$('input[name="datefilter"]').daterangepicker({

    autoUpdateInput: false,
    format: "yyyy-mm-dd",
    locale: {
      "format" : 'YYYY/MM/DD',
      "separator": " - ",
      "applyLabel": "Apply",
      "cancelLabel": "Cancel",
      "fromLabel": "From",
      "customRangeLabel": "Custom",
      "daysOfWeek": ["SUN","MON","TUE","WED","THE","FRI","SAT"]
    }
  });

0 Answers