hi i want to make a program in java where days,weekNo is parameter ..Like First Friday of the month or second Monday of the month ..and it returns the date
Calendar cal = Calendar.getInstance(); int dayofweek = cal.get(Calendar.DAY_OF_WEEK);
this should do what you want. edit: with some more calculate steps, you could have result :) (sorry for confuse your title)