Java Year From getYearMonthArray(Integer yearMonth)

Here you can find the source of getYearMonthArray(Integer yearMonth)

Description

get Year Month Array

License

Open Source License

Declaration

public static String[] getYearMonthArray(Integer yearMonth) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {

    public static String[] getYearMonthArray(Integer yearMonth) {
        String[] rv = new String[2];
        rv[0] = String.valueOf(yearMonth / 12);
        rv[1] = String.format("%02d", yearMonth % 12 + 1);
        return rv;
    }//from www  .  j  av a2s.com
}

Related

  1. getYearFromISODate(String isoDate)
  2. getYearFromTimestamp(long ms)
  3. getYearFromWeekCode(String weekCode)
  4. getYearFromYM(String ym)
  5. getYearMonth(String day)
  6. getYearMonthDays(int year, int month)
  7. getYearNumberofdays(String date)
  8. getYearOfDayMark(int day)
  9. getYearOfPreYearWeek(int year, int week)