I want to get the date of a specific day of the week, for example, Wednessday. ie If today is the date of the 27th of Friday, Wednessday will infact be 25th.
I could achieve this
Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.DAY_OF_WEEK, Calendar.WEDNESDAY); String thisWed = String.format("%tF%n", calendar)
The problem here is that java.util.Calendar
not supported on the client side of the GWT, is there a possible solution without having to move this code to the server?
thanks
source share