convert date format from yyyy-mm-dd to dd-mm-yyyy using value javascript
snippet in javascript

convert date format from yyyy-mm-dd to dd-mm-yyyy using value javascript

user9490

date.value.split("-").reverse().join("-");      //"2021-01-17" --> 17-01-2021