Customer Portal

Filtering by Date

Comments 2

  • Avatar
    Vladimir Barton
    0
    Comment actions Permalink
    Hi Hesske,
    it looks like you would want to take advantage of the dateDiff() function here. The way how this function is designed would determine the filter expression so it would be slightly different from your example though:

    dateDiff(today(),$in.0.whenCreated,day) < 2

    If you put this piece of CTL code into the Filter component, Clover would calculate the difference between today and the 'whenCreated' date and will only output those records where this difference is less than 2 days.
    Kind regards,
  • Avatar
    hesske
    0
    Comment actions Permalink
    Thanks Vladimir, this is exactly what I needed.

Please sign in to leave a comment.