datetimepicker field into database


Topic: datetimepicker field into database

Chris Sweeney pro premium asked 2 weeks 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'}, });`**


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Open

Specification of the issue
  • User: Pro
  • 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