Parse date from a string
date string, null or undefined
null
undefined
Date object if parse success, otherwise null
Parse date from a string