date parsing from sql returns