Convert dates in uicode to datetime