More defensive approach for DateTime convertion