Made the date picker actually work.