jQuery( function ( $ ) { $( '.contact-form input[type="date"]' ).datepicker( { dateFormat : 'yy-mm-dd' } ); } );