Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By webdev100 on
Hi - Using the calendar module, I have created a view using the calendar field. The calendar field displays as an event in the calendar. On the calendar, it shows date + start and end time. Instead, I only like to see start and end time. I did go to view and tried to edit the field configuration in view but I could not find any settings to select start and end time.
Please advise.
Thanks,
D
Comments
Views > Edit > clicked the
Views > Edit > clicked the field: Formatter has 3 values: date and time, time ago, plain.
Can I rewrite the output so it only displays the start and end time?
In your site go to url:
In your site go to url: /admin/config/regional/date-time/formats
Click on link Add format
Enter H:i
The H is for hours as shown by a 24 hour clock and the i is for minutes
When you visited the url you may notice three tabs showed up at the upper right side of the page. Click on Types. To add the time only format you just made click on Add date type
Give the type a name you want it to have. Choose the format you just made from the Select menu.
Go to the Calendar view and when you are editing a view go to the Fields category and click on Content: Event Date
There is a popup menu called Choose how users view dates and times
Normally It defaults to three choices but you just added a new one which you can now select.
Hopefully that gives you the idea.
Excellent help slewazimuth!
Excellent help slewazimuth! Thanks for your help guidelines! :)