11

How to change the month name to uppercase. Anyone know about this?

This is my example condition:

(new SimpleDateFormat("MMMM yyyy")).format($P{date_start})
zb226
  • 9,586
  • 6
  • 49
  • 79
Amin SCO
  • 1,892
  • 7
  • 31
  • 49

1 Answers1

14

Use .toUpperCase() , as follows:

(new SimpleDateFormat("MMMM yyyy")).format($P{date_start}).toString().toUpperCase()
Line
  • 1,529
  • 3
  • 18
  • 42
Nelson
  • 49,283
  • 8
  • 68
  • 81