Check whether the Date exists (30th / 31th day)
<p>how to check whether the 30 or 31th day of a month does exist or not.</p>

<p>31.09.2016 doesn't exist but will be shown as 01.10.2016 in Java and Javascript. Even with the correct locales etc. Any solutions in javascript or java is welcome since an ajax request can solve this as well.</p>

<p>Thanks in advance</p>