Change date format on datepicker

hello @johnny .
after update, all my GCE date format changed to m/d/Y. Why is this happening ?

before update, my datepicker format was d/m/Y.
Also, date format on config is no longer there.

Hello @heruprambadi ,

The datepicker is now taking from the browser format. Is your OS date format different? Some people also prefer the native date picker which you can enable it like this:

$crud->fieldType('fieldName', 'native_date');

Also when you are referring from version upgrade, you mean from version 2 to version 3 right? If so then there are migration steps also for you to know: Migrating from v2 to v3 | Grocery CRUD v3 which it is very helpful when there are upgrade issues.

Let me know if that worked.

Regards
Johnny

i said update @johnny not upgrade :smiley: it’s update from v 3.0.15 to 3.0.16.
But i’m not sure this is happened after GCE update or crome update.
Never mind, $crud->fieldType(‘fieldName’, ‘native_date’); solved my problem. I preffer to use this date picker. HTML date picker now is awesome :smiley:

1 Like