Fixes yesterday and today in textToDate.