hello we're attempting to change the locale of the daterangepicker to en-au but we see "invalid date" on the front end. We're currently researching this issue but thought to ask you if you have an example that could fast track us.
We did that first. We made several attempts to no avail.
The AU date format is DD/MM/YYYY.
We're using metronic 8 #14. Can you attempt it on your side?
Hi,
Please refer to this example to see how the selected date value is formatted using MomentJS plugin.
$("input[name="daterange"]").daterangepicker({
opens: "left"
}, function(start, end, label) {
console.log("A new date selection was made: " + start.format("YYYY-MM-DD") + " to " + end.format("YYYY-MM-DD"));
});
Hi,
Please refer to the Daterangepicker official docs here and configure your local date format using the below code:
locale: {
format: "M/DD hh:mm A"
}