Skip to content

Instantly share code, notes, and snippets.

@johnbocook
Created March 21, 2017 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnbocook/fd0b9618d3a21c8b456c84f8a41b0163 to your computer and use it in GitHub Desktop.
Save johnbocook/fd0b9618d3a21c8b456c84f8a41b0163 to your computer and use it in GitHub Desktop.
Cfscript, if year is older than this year do something.
if (dateDiff("yyyy", date_maint, now()) <= 0){
writeOutput('new' & date_maint &'</span>');
} else {
writeOutput('old' & date_maint &'</span>');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment