dateTimePicker script extracted (not used yet)