I have the following:
Date dateCommence = new SimpleDateFormat("YYYY-MM-DD HH:mm:ss").parse("2021-01-06 00:00:00");
But the dateCommence
is the following:
Sun Dec 27 00:00:00 SAST 2020
Question
How do I convert the "2021-01-06 00:00:00"
string to a date?