CMS MADE SIMPLE FORGE

Extended Content Blocks 2

 

[#12788] parameter date_format of field=date_time_picker seems to have no effect

avatar
Created By: Ludger Merkens (lume)
Date Submitted: Mon Jun 16 09:36:47 -0400 2025

Assigned To: CMS Made Simple Foundation (cmsmsfoundation)
Version: v2.4.2
CMSMS Version: 2.2.21
Severity: Minor
Resolution: Fixed
State: Open
Summary:
parameter date_format of field=date_time_picker seems to have no effect
Detailed Description:
I tried to pass a date_format to the date_time_picker field like so:
{content_module module=ECB2 field=date_time_picker date_format="dd.mm.YY"
block='test8' label='Date Time Picker'}

This would allow german users to read the date in the format they are used to.
But to no effect. I also tried php DateTimeInterface::format syntax "%d.%m.%Y"

Its probably just a matter of missing documentation? Which exact syntax does
this parameter expect?

best
Ludger Merkens


History

Comments
avatar
Date: 2026-11-04 08:15
Posted By: Chris Taylor (chrisbt)

Finally dug into this one. It uses jQuery UI date format,
https://api.jqueryui.com/datepicker/#option-dateFormat
Plus there was a bug so it wasn't working anyway!
Now fixed ready for next release. :)
      
Updates

Updated: 2026-11-04 08:15
resolution_id: => 7