System.out.println("The date variable has been incremented to endOfMonth and is = "+date);
// Let's decrement the same till beginning of the month
date = today.clone();
while (!date.eq(dateStartOfMonth)) {
date.dec();
}
System.out.println("The date variable has been decremented to startOfMonth and is = "+date);
// Let's update the todaysDate with the date just after it as the date is updatable
today.addAssign(1);