I saw that there was little code available to modify the datePicker using buttons, so I made this code after hours and hours of trial and error. Enjoy!