Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: datepicker cant select another year starting from 2020

sridadi agus mulyono free asked 5 years ago


This Is my JS : $('.datepicker').pickadate({ // Escape any “rule” characters with an exclamation mark (!). format: 'dd mmm, yyyy', formatSubmit: 'yyyy-mm-dd', selectYears: 100, hiddenPrefix: 'prefix_', hiddenSuffix: '_suffix' })

before insert to mysqli : $ins_date_val = $_POST['my_date']; $newDate = date("d/m/Y", strtotime($ins_date_val )); $ins_date = DateTime::createFromFormat('d/m/Y', $newDate)->format('Y-m-d');

I cant pick year 2020 and above, its always show 2019? if i pick 2 jun 2020 then it will always save to database as 2 jun 2019, always year 2019

please help?


Piotr Glejzer staff commented 5 years ago

maybe the format of date is incorrect? Did you try other possibilities? Best, Piotr



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Opened

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.8.10
  • Device: PC
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No