Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drupal 6: Date module and displaying only DATE value, without TIME

I'm a newbie drupal guy,

I use http://drupal.org/project/date module for my events date, but this module displays TIME as well as default, and I can't turn that off from configuration pages unless I'm a blind :/ is there any way to display only DATE value?

Appreciate helps!! thanks a lot!

like image 635
designer-trying-coding Avatar asked Feb 24 '26 04:02

designer-trying-coding


1 Answers

You need to add a new date and time format that only specifies the date portion under Administer › Site configuration › Date and time › Formats › Add format (the relative path is /admin/settings/date-time/formats/add).

Here are a couple of popular date formats strings according to the PHP date format characters:
m/d/Y becomes 06/22/2010
l, F j, Y becomes Tuesday, June 22, 2010

You can either set one of the three default format types (i.e. long, medium, or short) to use your custom format or you can add a new format type. In either case, you would just need to specify the date field to use the format type that is set to your custom date format.

like image 167
James An Avatar answered Feb 27 '26 03:02

James An



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!