/**获取当前日期的月份*/
public int getMonth(Date dt){
String date = dt.toString();
int month=0;
if(date.contains("Jan")){
month = 1;
}
if(date.contains("Feb")){
month = 2;
}
if(date.contains("Mar")){
month = 3;
}
if(date.contains("May")){
month = 4;
}
if(date.contains("May")){
month = 5;
}
if(date.contains("June")){
month = 6;
}
if(date.contains("July")){
month = 7;
}
if(date.contains("Aug")){
month = 8;
}
if(date.contains("Sep")){
month = 9;
}
if(date.contains("Oct")){
month = 10;
}
if(date.contains("Nov")){
month = 11;
}
if(date.contains("Dec")){
month = 12;
}
return month;
}