0

I want to validate incoming date format (it should only accept date format) with specific format of (DD/mm/YYYY)

which annotation shall i use to see that date is not null

@NotNull
private Date myDate;
Patrick
  • 12,336
  • 15
  • 73
  • 115
AJEET SINGH
  • 11
  • 1
  • 4
  • so look at the Bean Validation API, rather than tagging it as JPA –  Sep 14 '17 at 08:40
  • Possible duplicate of [How to format the json date format using spring boot](https://stackoverflow.com/questions/29077617/how-to-format-the-json-date-format-using-spring-boot) – g00glen00b Sep 14 '17 at 08:55
  • I am trying to validate incoming request. I resolved this by creating validator class for validating date. – AJEET SINGH Sep 15 '17 at 04:03

0 Answers0