I receive from UI selected date, not now Date, it's may be different date.
I need to check weekend and add local non-working days and check these days too.
I receive:
@RequestParam(value = "valueDate")
@DateTimeFormat(pattern = "yyyy-MM-dd")Date valueDate
I can use valueDate.getDay()
, but how I understand this old format (because getDay() is crossed out).
How will now?