Cut a time from the date string
Updated getDateFromDateTimeString implementation
Refactoring