Use this with regular java Date:
public static boolean isFirstDayOfTheMonth( Date dateToday ){
if(dateToday.getDate() == 1){
System.out.println("First of the month");
return true;
}else{
return false';
}
}
Hope this helps. And good luck with the rest of your code.
source
share