$(document).ready(function() { $('#txtDate').attr("placeholder", "mm/dd/yyyy").datepicker(); });
<input type='text' id='txtDate' />