tips icon image

EE Insider Tips
Sponsored by EE Screencasts

ExpressionEngine mini-howtos created by the EE Insider community.

Tips tagged “Date”

More precise date comparisons

Posted on June 22, 2009 by Jason Morehead

As with most EE variables, you can do comparisons on date variables, like so:

{if date_variable == "foo"}
    
Do something
{
/if} 

However, if you need more precise date comparisons, you can do something like this:

{if "{date_variable format='%m/%d/%Y'}" == "01/01/2009"}
    
Do something
{
/if} 

Read this tip

Validating monthly archive URLs, exceptional SEO and clever titles.

Posted on June 09, 2009 by Leevi Graham

<!-- Validate monthly archive URLS like /blog/archive/02/2009 and display blog posts -->

<!--
    
Validate the URL using the query module.
    
Users cannot have crazy urls like /blog/archive/13/2009
    Assign a couple of nice variables 
for titles meta
-->
{exp:query sql="SELECT

Read this tip

Copyright Date

Posted on May 29, 2009 by Jonathan Longnecker

Easy way to make sure your copyright date is always up to date:

&copy{current_time format="%Y"

Search EE Insider Tips
Sponsored By