Here you can find the source of getCurMonth2Long()
public static Long getCurMonth2Long() throws ParseException
//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*/ }