to form get date set into RequestMapping to @RequestParam takes date

in request Data from form........

 @RequestParam("StartDate") @DateTimeFormat(pattern = "yyyy-MM-dd") LocalDate strdate

Also declare bean in ,

@DateTimeFormat(pattern = "yyyy-MM-dd")

private LocalDate dob;

Comments