Date Functions

In This Lesson, You Will Learn:

  • The correct format for a date string to be used in expressions.
  • How to include the current date in expressions.
  • Functions that process specific dates as though they were numerical values.

Using arithmetic on regular numeric data such as integer and floating point values is relatively straightforward. However, due to the way date values are interpreted by the Expression Engine, special functions are required to process arithmetic calculations and comparison that involve dates.

Date functions perform operations ranging from finding the length of time between two dates (DateDiff) to modifying a date by a specified number of days, months or years (DateAdd). This chapter will teach you all available date functions, why you might need to use them, and how to nest them together to produce advanced date analysis expressions.

 

<< Previous: Lesson Summary | Next: Date String Formatting >>