I am trying to get the current date and add it as part of a string, but it is not working. This is what I have:
In User Defined Variables
currentDate ${__time(dd/MM/yyyy)}
And then later:
CurrentDate = vars.get("currentDate");
TestFile = vars.get("testFile-" + CurrentDate + ".txt");
f = new FileOutputStream(TestFile, true);