Month: October 2013

Jquery:Add days in date

Jquery:Add days in date

<code> <script><br /> $(“#x_days”).change(function(){<br /> /* DefaultDateFormat defined in config.php */<br /> ;<br /> var mDate =new Date(2013, 10, 16);<br /> var numberOfDaysToAdd=this.value;<br /> var tomorrow = new Date();<br /> var p =new Date(tomorrow.setDate(mDate.getDate()+parseInt(numberOfDaysToAdd)));<br /> var formated_date=p.getDate()+’/’+(p.getMonth()+1)+’/’+p.getFullYear();<br /> alert(formated_date);<br /> });<br /> <script><br /> </code></p> </script></code>