Topic: datetimepicker field into database
Chris Sweeney
premium
asked 1 hour ago
I'm trying to get the datetimepicker to insert a date and time into my database
However, the date defaults to 1970-01-01 01:00:00
I've tried using the following at the bottom of the page, but without suddess. **` import { Datetimepicker, Input, initMDB } from "mdb-ui-kit";
initMDB({ Input });
const pickerDateOptions = document.querySelector('#StartDate'); new Datetimepicker(pickerDateOptions, { datepicker: { format: 'yyyy-mm-dd hh:ii'}, });`**
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Opened
- ForumUser: Premium
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 9.3.0
- Device: PC
- Browser: Chroms
- OS: w11
- Provided sample code: No
- Provided link: No