0

Text to Dynamic Caption

Hi

 

Hopefully an easy one, im looking to add the word "and Prior" to the following dynamic caption text

ToString(DateFormat(AddYears(Date(),-2), "YYYY") )

I did think it would be ToString(DateFormat(AddYears(Date(),-2), "YYYY") ) & " and Prior"

Any help much appreciated

 

Thanks

 

Nick

2 replies

null
    • Senior Director of Product
    • Ian_Macdonald
    • 3 yrs ago
    • Reported - view

    Simply use the concatenation operator "+" thus:

        ToString(DateFormat(AddYears(Date(),-2), "YYYY") ) + " and prior"

    Note, DateFormat() returns a string, so the ToString() function is redundant.

    Hope that helps,

    Ian

    • Nicholas_Campbell
    • 3 yrs ago
    • Reported - view

    Thanks Ian, much appreciated

Content aside

  • Status Answered
  • 3 yrs agoLast active
  • 2Replies
  • 34Views
  • 3 Following