public static String [ ] getMonths ( Locale locale ) { if ( locale == null ) { locale = Locale . US ; } DateFormatSymbols dfs = DateFormatSymbols . getInstance ( locale ) ; return dfs . getMonths ( ) ; }
Returns an array of the months in the Gregorian calendar .