code: function checkDateInputSupport () {
    var input = document.createElement('input');
    input.setAttribute('type','date');
  
    var notADateValue = 'not-a-date';
    input.setAttribute('value', notADateValue);
  
    return !(input.value === notADateValue);
  }
docs: return false if the browser dont support input[type=date]