Trying to figure out how a date time picker works