SO - 4710166

by Arun P Johny

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.7/themes/smoothness/jquery-ui.css">
<div class="demo">

<p>Date: <input type="text" id="datepicker"></p>

</div>

JavaScript

$( "#datepicker" ).datepicker({dateFormat:"dd M yy"}).datepicker("setDate",new Date());