date parsing function and spec
parse date in Transaction::from_cmd