Changed the way the picker handles dates internally to fix some bugs with the date picker.