I have a date string in such format: '11:29:16 01.08.2019'
.
I need to convert it to a date object, because it will be used to sort a table. For this purpose I use this code:
const myDate = '11:29:16 01.08.2019'
new Date(myDate + 'Z')
The problem is that the code interprets "01.08" as January 8, but it must be August 1.