I need to calculate the date range using date format d/m/y using javascript. example: 20/1/2020 until 21/1/2020 is a 1-day difference.
but when I console it shows as "Sat Aug 01 2020 00:00:00 GMT+0800 (Singapore Standard Time)" and if I pick 13/01/2020 its will come out as an invalid date.
How can I change the date format from m/d/Y to d/m/Y because this will affect my calculation?
Thank you in advance.