$(document).ready(function(){
    Modernizr.load({
        test: Modernizr.inputtypes.date,
        nope: ['http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.7/jquery-ui.min.js', 'jquery-ui.css'],
          complete: function () {
        $('input[type=date]').datepicker({
      dateFormat: 'yy-mm-dd'
    }); 
  }
});

});

$(document).ready(function(){
    Modernizr.load({
        test: Modernizr.inputtypes.date,
        nope: ['http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.7/jquery-ui.min.js','http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.7/themes/base/jquery-ui.css'],
          complete: function () {
        $('input[type=date]').datepicker({
      dateFormat: 'yy-mm-dd'
    }); 
  }
});

});

Update to use correct jquery-ui.css file
Update to use correct jquery-ui.css file
