Want to get the first day of month from current date.
To get that I'm doing with org.apache.commons.lang3.time.DateUtils to return in below format
DateUtils.truncate(new Date(), 2);
this is returning expected output like below:
Fri Jul 01 00:00:00 IST 2022
Is any other way to get the 1st day of the current month with the same above date time format?