Search code examples
dateformattingjmeter

Day code in jMeter into variable


Is it possible to get code of current day in jMeter into variable? Day code I mean something like: MON or FRI or something like that. I need do get it into variable and work with it.


Solution

  • I usually use BSF processors and if you used Groovy then it would look like Date.parse("yyyy-MM-dd", "2011-04-02").format("EEE"). This produces three letter code of day. E.g., today is "Tue". Then you can use toUpperCase() to make it TUE.