When converting the date string '06/06/2022' to a date object in my local node environment using the following code...
new Date('06/06/2022')
The resulting date object is '2023-06-05T23:00:00.000Z'. The day is being changed.
I understand that I can use .toLocaleDateString() to convert this back. But I require the date object itself.
How do I get the locale date object, instead of the locale date string?