Fixes isue where if dateString is nil, it returns nil