Skip Navigation

[Resolved] Toolset Forms – Date Field Format

This support ticket is created 3 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Author
Posts
#1852463

The global date format of our WordPress website is set to j. F Y (= 22. November 2020).

Nevertheless, date input fields created with Toolset Forms are displaying the date as November 22, 2020.

As far as I learned from other forum entries, I cannot format a single date field by adding a format attribute like this:

[cred_field field="eintrittsdatum" force_type="field" class="form-control" output="bootstrap" format=" j. F Y"]

So how can I display the date in the proper format?

#1852649

Hello, Forms date fields currently support only the following formats:
F j, Y = December 23, 2011
Y/m/d = 2018/12/24
m/d/Y = 12/24/2018
d/m/Y = 24/12/2018
j F Y = 24 December 2018

The closest one to your requirements appears to be j F Y. If you choose one of these formats in Settings > Global, it will be used for the date field. Other formats are not currently supported in Forms, but are supported when displaying the date on the front-end of the site after the post is submitted with Forms. You may be able to use custom code to specify your own date format using the jQuery datepicker API, but support for implementing other formats is not available here in the forums as this code falls outside the scope of our support policy.
http://api.jqueryui.com/datepicker/#option-dateFormat
https://toolset.com/toolset-support-policy

Another ticket with some unsupported code provided by another User might help you create your own custom solution:
https://toolset.com/forums/topic/cred-datepicker-default-format/
Again, this is custom code that is unsupported here in the forums and may or may not work for your needs.

#1856369

Thank you for clarifying this.

For obvious reasons I cannot change the global settings of my site to an inappropriate date format just to come a bit closer to what the date picker supports in one single input field.

Coding my own solution is unfortunately beyond my skills. I would expect that Toolset supports all standard date formats with its date picker out of the box.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.