Skip to content

Instantly share code, notes, and snippets.

@mplacona
Created August 30, 2012 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mplacona/3525850 to your computer and use it in GitHub Desktop.
Save mplacona/3525850 to your computer and use it in GitHub Desktop.
JMeter - JavaScript Date UDF
${__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