SyntaxFix
Write A Post
Hire A Developer
Questions
First day of month of a date:
public static Date firstDayOfMonth(Date d) { Calendar calendar = new GregorianCalendar(); calendar.setTime(d); calendar.set(Calendar.DAY_OF_MONTH, 1); return calendar.getTime(); }