Closed (fixed)
Project:
Webform
Version:
6.x-3.9
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2011 at 20:06 UTC
Updated:
21 Jul 2016 at 08:09 UTC
Jump to comment: Most recent
Hi,
When you have a date field as one of your components, is there a way to change the default order of 'Month-Day-Year' to: 'Day-Month-Year'?
Thanks,
Mark
Comments
Comment #1
quicksketchYes, just change the order of your "small" format in the site wide date settings. Webform (as well as Drupal core) use the small format when ordering #type = date elements.
Comment #2
dmatthey commentedDoesn't work for me. Also tried to define a custom date format "d/m/Y" and assigned it to the short date format. Then I still get values of type m/d/Y in my webform emails.
An other idea?
Comment #3
quicksketchSorry it's the "short" format, not "small". See this function in Drupal core for the logic: http://api.drupal.org/api/drupal/includes--form.inc/function/expand_date/6
Comment #4
markwsimon commentedMany thanks! Mark
Comment #6
commanderflash commentedI am having the same issue and I have updated the Short date format. It appears to ignore the Drupal system date settings.
Comment #7
quicksketchFollowup as a feature: #1346536: Make submission date display formats configurable
Comment #8
hello2robi commentedUse the function bellow in you template.php file and replace 'mytheme' with your theme name to override webform date format ...
Comment #9
ccarnnia commentedHard coding "short" as the default value of D7 webform date field worked for me.