If I have 2 strings in Typescript containing dates in this format
"17 October 2018 10:05 AM"
How can I convert them to Date types so I can compare them?
I had tried new Date(stringDate1)
and moment(stringDate1)
but they result in invalid dates obviously.