supports-date

Check if your browser has support for date inputs.

<script src="../dist/supports-date.js"></script>
<script type="text/javascript">
    if (supportsDate()) {
         alert("Your browser supports date inputs.");
         // ...and be happy!
    } else {
         alert("Your browser does NOT support date inputs.");
         // ...and fallback to some datepicker in JS
    }
</script>
Created with JS and by Ionică Bizău