Converting automatically date-and time strings to datetime object