1
0
-1

This is a really simple one.  2019 2020 2021

#date.YYYY#

#date.YYYY-1.EEE,d#  <–  How to do this ?

#date.YYY+1.EEE,d#  <–  How to do this ?

I need to have a dropdown with 3 values Present year  Last year and next year.

    CommentAdd your comment...

    1 answer

    1.  
      2
      1
      0

      According to Hash Variable#DateHashVariable

      #date.DAY+7.EEE,d MMM yyyy h:mm:ss a# // Add 7 days on top of current date time - Wed, 11 Jul 2014 12:08:56 PM

      So, you should use

      #date.YEAR-1.yyyy#
      #date.yyyy#
      #date.YEAR+1.yyyy#

      to get

      2019
      2020
      2021
      1. Bilal

        Thanks alot Bastiana (smile)

      CommentAdd your comment...