How to get ordinal Weekdays in a Month
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 Here's a utility method that does that, using DateUtils from Apache Commons / Lang : /** * Get the n-th x-day of the month in which the specified date lies. * @param input the specified date * @param weeks 1-based offset (e.g. 1 means 1st week) * @param targetWeekDay (the weekday we're looking for, e.g. Calendar.MONDAY * @return the target date */ public static Date getNthXdayInMonth(final Date input, final int weeks, final int