input type date doesn't work in ie

JavaScript
if ( $('[type="date"]').prop('type') != 'date' ) {
    $('[type="date"]').datepicker();
}
Source

Also in JavaScript: