fixes various date parsing bug.
Date parser seperated.