Search code examples
javajasper-reports

SimpleDateFormat month name with uppercase


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})

Solution

  • Use .toUpperCase() , as follows:

    (new SimpleDateFormat("MMMM yyyy")).format($P{date_start}).toString().toUpperCase()