Datepicker display format vs. submit format

Topic: Datepicker display format vs. submit format

UNNdev pro premium priority asked a year ago

Expected behavior

Often, the date format displayed to the user is different than what a server expects (i.e. localized format vs. ISO). It would be nice if there were two options for formatting - one for the display and one for submitting.

Upon initialization, the Datepicker would create a hidden input with the name of the original text input and set its value to what the user picked, but format it using the submit format. The text input that displays the date should no longer have a name attribute so its value is not submitted and should use the display format.

Having such a behavior built-in would make using the Datepicker component easier without having to write custom JavaScript.

Actual behavior

There is only one format option and that affects both the date displayed and the value submitted to the server.

Dawid Wajszczuk staff answered a year ago


Thanks for your feedback. I have added this to our ideas list. We will discuss this in our team.

Keep coding,

Please insert min. 20 characters.


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



Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.7.1
  • Device: All devices
  • Browser: All browsers
  • OS: All operating systems
  • Provided sample code: No
  • Provided link: No