Closed (fixed)
Project:
Webform
Version:
5.x-1.8
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2008 at 20:36 UTC
Updated:
13 Aug 2009 at 18:26 UTC
I am wondering if I have the ability out of the box to control the date form displayed in the web form and in the email. I more prefer format like
"1/30/2008" instead of "Jan 30 2008".
Do I have to change the code by myself to implement this? Thanks!
Comments
Comment #1
quicksketchYou can over ride the theme functions for outputting the date. In your template.php file, copy the theme_webform_date() and theme_webform_mail_date() functions from date.inc. Then rename the functions to phptemplate_webform_date() and phptemplate_webform_mail_date(). Change the code however necessary to output the way you like and Drupal will use these functions from your theme instead of webform.
Comment #2
xqi commentedHi quicksketch,
Thanks for the super fast reply. It worked for me.
Comment #3
quicksketchWoot!
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #5
rgraves commentedHow can this be accomplished in Drupal 6? I put the following code in my template.php file so that I can format the date as 'September 15, 2009' instead of '09/15/2009' and it's not working.