Java Month Calculate getAlphaMonth(String mon)

Here you can find the source of getAlphaMonth(String mon)

Description

get Alpha Month

License

Open Source License

Declaration

private static int getAlphaMonth(String mon) 

Method Source Code

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

import java.util.*;

public class Main {
    private static final Map<String, Integer> MONTHS = new HashMap<String, Integer>();

    private static int getAlphaMonth(String mon) {
        mon = mon.toLowerCase();//from  w  w  w.j a  va 2s . c  o  m
        if (MONTHS.get(mon) != null) {
            return MONTHS.get(mon);
        }
        return 0;
    }
}

Related

  1. calendarMonthToInt(int calendarMonth)
  2. currentMonth()
  3. divideIntoMonthlyIntervals(Date start, Date end)
  4. endOfLastMonth()
  5. getAgeInMonths(Date startDate, Date endDate)
  6. getCurrentMonth()
  7. getCurrentMonth()
  8. getCurrentMonthName()
  9. getDateMonthShift(int Shift)