Fix date parsing format bug.