Edits and saves date using the date picker.