Smart UI Components & Libraries – Grid, Scheduler, Gantt, Kanban for Angular, React, Next.js, Vue, Blazor, JavaScript › Forums › General Discussions › how to use ‘yyyy-MM-dd – yyyy-MM-dd’ format in daterangeinput? › Reply To: how to use ‘yyyy-MM-dd – yyyy-MM-dd’ format in daterangeinput?
Hi,
The daterangeinput uses Intl.DateTimeFormat for dates formatting. More details on: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat. The dateFormat property of the DateRangeInput can be set to an object like {day: “number”, month: “number”, year: “number”}. For available list of properties, please check the tutorial from the link which was provided here.
Best regards,
Markov
Smart UI Team
https://www.htmlelements.com