<script>onload=fuction(){ document.getElementById("ex-2").value="<?php echo '2013-01-10'; ?>";};</script>