Created
August 30, 2012 10:30
-
-
Save mplacona/3525850 to your computer and use it in GitHub Desktop.
JMeter - JavaScript Date UDF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
${__javaScript(var d=new Date();d.setDate(d.getDate() + 60); var date=d.getDate(); var month=d.getMonth()+1; $DATE=d.getFullYear() + "-" + (month<10?"0"+month:month) + "-" + (date<10?"0"+date:date);,DATE)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment