From API I am getting an datetime which is in invalid format. So how can I convert this invalid date to valid date format.
new Date('02-11-2021 07:11 PM')
Can anyone help me how to solve the problem
From API I am getting an datetime which is in invalid format. So how can I convert this invalid date to valid date format.
new Date('02-11-2021 07:11 PM')
Can anyone help me how to solve the problem