28

If I am given some random date, then I need to check if that date really exists or not and then display true or false. I need to return false for both the dates 32-11-2010 and 31-02-2010 because the month of february doesn't contain 31st. How do we do this in Java?

BalusC
  • 1,040,783
  • 362
  • 3,548
  • 3,513
maximus
  • 289
  • 1
  • 3
  • 5
  • @acm There's great answers on both questions; one is probably a duplicate of the other, but I've raised a flag and requested that that one just be fully merged into this one. – Jason C Sep 22 '16 at 22:24

0 Answers0