I have a small program that displays the current week from todays date, like this:
GregorianCalendar gc = new GregorianCalendar(); int day = 0; gc.add(Calend
You can use that, but you have to parse the date value to proper date format using SimpleDateFormatter of java API. You can specify any format you want. After that you can do you manipulation to get the week of the year.
SimpleDateFormatter
java API