We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Evaluation dates sharing the same month and year

Development and Programming

Adam George's avatar
Adam George
283 posts
about 18 years ago
Adam George's avatar Adam George

I currently have this code which displays event dates:

{if statenews_eventstart}{statenews_eventstart format="%d %M"}{/if}{if statenews_eventfinish} - {statenews_eventfinish format="%d %M"}{/if}

I would like to test whether the event start date shares the same month and year as the event finish date, because if it does, I would like to display, e.g. 12-13 July, instead of 12 July - 13 July.

Is this possible? Are there examples of this?

Thank you.

       
Adam George's avatar
Adam George
283 posts
17 years ago
Adam George's avatar Adam George

Anyone?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.