EL functions for generating timestamps: currentDate

Hello,

I am trying to make use of the new EL function to generate a date timestamp:

.queryParam(“bonusStartDate”,"${currentDate(“yyyy-MM-dd”)}")

This results in errors:

13:06:30.400 [main][ERROR][ZincCompiler.scala:182] i.g.c.ZincCompiler$ - /Users/okke/Documents/gatling-appie-bonus-bff/src/test/scala/com/ahold/appiebonusbff/api/BonusControllerApi.scala:94:54: value yyyy is not a member of String
.queryParam(“bonusStartDate”,"${currentDate(“yyyy-MM-dd”)}")
^
13:06:30.404 [main][ERROR][ZincCompiler.scala:182] i.g.c.ZincCompiler$ - /Users/okke/Documents/gatling-appie-bonus-bff/src/test/scala/com/ahold/appiebonusbff/api/BonusControllerApi.scala:94:59: not found: value MM
.queryParam(“bonusStartDate”,"${currentDate(“yyyy-MM-dd”)}")
^
13:06:30.405 [main][ERROR][ZincCompiler.scala:182] i.g.c.ZincCompiler$ - /Users/okke/Documents/gatling-appie-bonus-bff/src/test/scala/com/ahold/appiebonusbff/api/BonusControllerApi.scala:94:62: value dd is not a member of StringContext
.queryParam(“bonusStartDate”,"${currentDate(“yyyy-MM-dd”)}")
^

What could be the case?
Can someone show a working example please?

Thanks in advance.

.queryParam(“bonusStartDate”,"${currentDate(“yyyy-MM-dd”)}")

This can’t compile because you’re breaking the string with those extra double quotes wrapping the pattern.

.queryParam(“bonusStartDate”,"${currentDate(yyyy-MM-dd)}")

Thanks maestro!