Browse Source

adding a datetime verification

master
analuizaff 3 years ago
parent
commit
dda89b0acc
  1. 6
      src/app/components/forms/FormDatePicker.js

6
src/app/components/forms/FormDatePicker.js

@ -62,6 +62,9 @@ const FormDatePicker = (props) => {
setShow(false); setShow(false);
setMode("date"); setMode("date");
} }
else{
setTime(moment());
}
} }
} }
}; };
@ -86,6 +89,9 @@ const FormDatePicker = (props) => {
setShow(false); setShow(false);
setMode("date"); setMode("date");
} }
else{
setTime(moment());
}
} }
}; };

Loading…
Cancel
Save