0

I'm creating an SSRS report and I need to set a begin date so that it always returns 12/21/2015. Is there an expression to use in SSRS to bring back a static date that will never change?

I've been chewing on this for awhile and searching everywhere. Thanks

BIReportGuy
  • 799
  • 3
  • 13
  • 36

1 Answers1

2

In SSRS you can produce date objects manually using CDATE and DATESERIAL functions.

To produce today date manually you can use:

CDATE("2016-11-11") --> yyyy-MM-dd
or
DATESERIAL(2016,11,11) --> year, month, day

And you can use them in any SSRS expression, i.e:

=IIF(Today()=CDATE("2016-11-11"), some crazy expression, some crazy expression)

or

=IIF(Today()=DATESERIAL(2016,11,11), some crazy expression , some crazy expression)

Let me know if this helps.

alejandro zuleta
  • 13,962
  • 3
  • 28
  • 48