Display certain content based on whether a date is in the past or future I have a content type called 'DVD Review' with a field called 'Release Date' which is input using the date module. 

On the node page, if the release date is in the future I'd like it to say "Coming Soon", or otherwise, if the release date is in the past say "Out Now".

I'm using Display Suite to arrange the fields, so I'm thinking I could add a code field with a php if statement to handle this.
Please follow below instructions to add new custom code field.


Go to admin/structure/types/manage/your_content_type/display
Click on Add Custom Fields Vertical Tab @ Bottom of Screen.
Click on Add a Code Field.
Use $entity object to get Release Date based on that display the message.
Enable the Code Field in right place.


Post comments if you have any Questions.