date - How can Joda or Java returns true if day is the first day of the month? -
how in joda or java can write method returns boolean value if today first day of current month? if today's date first day of month, return true.
it this:
public static boolean isfirstdayofthemonth( date datetoday ){ boolean isfirstday = false; //code check if datetoday first day of current month. returns isfirstday; }   thank in advance!
with java se 8:
public static boolean isfirstdayofthemonth(localdate datetoday ){   return datetoday.getdayofmonth() == 1; }      
Comments
Post a Comment