fixed date picker formatting error