https://kodejava.org/how-do-i-convert-datetime-string-with-optional-part-to-a-date-object/
How do I convert datetime string with optional part to a date object?