Add datetimepicker functionality