I am facing a challenge with 2 dates that are stored in the following format:
"04.12.2019, 09:35" // Today
"05.12.2019, 12:50" // Another date
I need to compare these dates to determine if they have passed or are yet to come.
My initial approach was to convert them into Date objects for comparison, but most of the solutions I found online involve using moment.js for this conversion.
Is there a way to convert these date strings into Date objects without relying on moment.js, or perhaps even compare them without converting them at all?