ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

post date handling logic

August 07, 2008 4:38pm

Subscribe [0]
  • #1 / Aug 07, 2008 4:38pm

    ryancalderoni

    3 posts

    Is it possible to in the code do like:

    if date earlier than 2005 (show this) /if
    else if date later than 2005 (show this) /if

    hopefully can base it off of the year part of the entry date only pretty easily?

  • #2 / Aug 08, 2008 4:04am

    Justin Hurlburt

    344 posts

    The weblog:entries tag has an entry_date variable that you can define the output of with the format parameter. You could use this to compare dates in a conditional statement.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases