1

I have a content type called 'Events' including the fields:

  • Title
  • Thumbnail
  • Date (Can be a start, or both a start and end date)

I have created a view that takes this content type and outputs it as follows:

  • Exhibition
  • Thumbnail
  • 17 December 2015 or 17 December 2015 - 23 December 2015

My question is how can I can change the output of the field if the 'Date' field has a start date and an end date.

I am using the Event Calendar Module to create my events.

Can you offer a solution? Thanks in advance.

  • 1
    it would help if you show an example of desired output. – oksana-c Feb 1 '16 at 20:21
2

Enable the Date Views module

In views, click on your field and change Date Format to Custom

For Custom Date Format: you can put something like this m/d/y or M d, Y

You can format it however you want by using the format characters from the PHP manual

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.