Forum Discussion
nmrao
10 years agoChampion Level 3
Is this the output you are looking for?
Here is the script
You may also want the value to a variable, just add below statement.
SU20140730094629693
Here is the script
StringBuilder sb = new StringBuilder()
Formatter formatter = new Formatter(sb, Locale.US)
log.info formatter.format("SU%tY%<tm%<td%<tH%<tM%<tS%<tL", new Date())
You may also want the value to a variable, just add below statement.
def formattedString = sb.toString()
Related Content
- 7 years agojohnybasha786