Java Month Format formatMonthDay(int decimal)

Here you can find the source of formatMonthDay(int decimal)

Description

format Month Day

License

Apache License

Declaration

public static String formatMonthDay(int decimal) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.text.DecimalFormat;

public class Main {

    public static String formatMonthDay(int decimal) {
        DecimalFormat df = new DecimalFormat("00");
        return df.format(decimal);
    }/*from   ww  w  .  ja  v  a 2 s.  com*/
}

Related

  1. formatMonth(final Date date)
  2. formatMonth(final int year, final int month)
  3. formatMonth(int month)
  4. formatMonth(int month, Locale locale, boolean longFormat)
  5. formatMonth(String dateOrign)
  6. formatMonthlyPeriod(String month)
  7. getAfterByNMonth(String format, int months)
  8. getCurrMonthFirstDaySlashFormat()
  9. getDisplayMonth(Date time, int monthBefore, int monthAfter, SimpleDateFormat format)