I have a requirement which is as follows: for example if today is Sunday then I need to get first Sunday and last Sunday in next month, and so on for all days in the week. I need to get the first and last day in next month.
Any idea on how I can do it
Is there a generic way to do it, or do I need to deal with each day separately? I have tried many ways, but all I found is each day has a special formula.
The technology I am using is Java.