java - Want to get the start and end date of a month from a particular date -
i m having code gives date of particular event :
string date=date1.substring(3,5)+"/"+date1.substring(0,2)+"/"+date1.substring(6,10);
i want start date , end date of month of above date belongs to..
kindly help.
use calendar.getactualmaximum()
to max date of month
cal.getactualmaximum(calendar.day_of_month)
and minimum
cal.getactualminimum(calendar.day_of_month)
note : cal
instance of calendar
Comments
Post a Comment