Modified datetimepicker to work with pure