src/ca/rmen/pdm/xls2html/main/Db2Html.java
/**
     * @return the given date formatted in the Spanish locale.
     */
@return the given date formatted in the Spanish locale.
@return the given date formatted in the Spanish locale .
private static String formatDate(int year, int month) {
        Locale localeES = new Locale.Builder().setLanguage("es").setRegion("es").build();
        SimpleDateFormat sdf = new SimpleDateFormat("MMMM' de 'yyyy", localeES);
        Calendar calendar = Calendar.getInstance();
        calendar.set(Calendar.YEAR, year);
        calendar.set(Calendar.MONTH, month - 1);
        calendar.set(Calendar.DAY_OF_MONTH, 1);
        return sdf.format(calendar.getTime());
    }
private static String formatDate ( int year , int month ) { Locale localeES = new Locale . Builder ( ) . setLanguage ( "es" ) . setRegion ( "es" ) . build ( ) ; SimpleDateFormat sdf = new SimpleDateFormat ( "MMMM' de 'yyyy" , localeES ) ; Calendar calendar = Calendar . getInstance ( ) ; calendar . set ( Calendar . YEAR , year ) ; calendar . set ( Calendar . MONTH , month - 1 ) ; calendar . set ( Calendar . DAY_OF_MONTH , 1 ) ; return sdf . format ( calendar . getTime ( ) ) ; }
@return the given date formatted in the Spanish locale.
@return the given date formatted in the Spanish locale .