Skip to content

Instantly share code, notes, and snippets.

@jakab922
Created August 30, 2016 07:59
Show Gist options
  • Save jakab922/f15973bcc87b90ffa642049996c6020d to your computer and use it in GitHub Desktop.
Save jakab922/f15973bcc87b90ffa642049996c6020d to your computer and use it in GitHub Desktop.
Formatting the current time in beanshell
import java.util.Date;
import java.text.SimpleDateFormat;
SimpleDateFormat formatter = new SimpleDateFormat( "yyyyMMddHHmmss" );
return formatter.format( new java.util.Date() );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment