fixing and enhancing the date picker
build
checking date value