Deprecated: Optional parameter $ent_id declared before required parameter $type_id is implicitly treated as a required parameter in /data/www/live/clink/new/gen/includes/functions_spec.php on line 384

Deprecated: Optional parameter $curDepth declared before required parameter $ins is implicitly treated as a required parameter in /data/www/live/clink/new/gen/includes/functions_spec.php on line 830

Deprecated: Creation of dynamic property Session::$id is deprecated in /data/www/live/clink/new/gen/includes/session.php on line 65

Deprecated: Creation of dynamic property Session::$last_call is deprecated in /data/www/live/clink/new/gen/includes/session.php on line 65
Charters.Link
Warning: foreach() argument must be of type array|object, string given in /data/www/live/clink/new/gen/test/public-test-header.php on line 20

Warning: foreach() argument must be of type array|object, string given in /data/www/live/gen_includes/functions_gen.php on line 3707
Loading...

Warning: foreach() argument must be of type array|object, string given in /data/www/live/gen_includes/functions_gen.php on line 3707

Public Testing Page 3

MDB5 Pro Datepicker Issue

The Problem?

When I use the placeholder format of m-d-yyyy in a field using datepicker, when you click on a date in the datepicker, it puts the date - 1 month into the input. For example, if you click on June 11, it will put "5/11/2021" in the date input field instead of "6/11/2021".

When I change the placeholder format to mm-dd-yyyy then it works fine.

Documentation (https://mdbootstrap.com/docs/standard/forms/datepicker/) says that "m" can be used as a month of the yera, and that it will return 1-12.

Samples

Broken

Placeholder: m-d-yyyy

Broken

Placeholder: m-d-yyyy + inline datepicker

Working

Placeholder: mm-dd-yyyy

Working

Placeholder: mm-dd-yyyy + inline datepicker

Javascript