Java Month Get getCurMonth2Long()

Here you can find the source of getCurMonth2Long()

Description

get Cur Month Long

License

Open Source License

Declaration

public static Long getCurMonth2Long() throws ParseException 

Method Source Code

//package com.java2s;

import java.text.ParseException;
import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {

    public static Long getCurMonth2Long() throws ParseException {
        Date date = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("MM");
        // t_log_echn_servinvoke.setTime_range(Long.valueOf(sdf.format(date)));
        return Long.parseLong(sdf.format(date));
    }/*w w w  .  j  ava  2s.  c om*/
}

Related

  1. currentMonthStr()
  2. getAktMonthName()
  3. getAllMonths(String date1, String date2)
  4. getBeforeMonth(int amount)
  5. getBeforeOrAfterDate(String strDate, int months)
  6. getCurrMonthLastDay()
  7. getEndDateOfMonth(String yyyymmdd)
  8. getEngMonth()
  9. getIntervalMonths(String startDate, String endDate)