rashmi_k28 Posted November 4, 2008 Share Posted November 4, 2008 The code below shows the date as 'yyyy-mm-dd' as default. How to make the current date as default. <INPUT readOnly size=10 value=yyyy-mm-dd name=date1> <b>End Date : </b><A id=anchor2 onclick="cal.select(document.forms['myform'].date2,'anchor2','yyyy-MM-dd'); return false;" href="#" name=anchor2><IMG height=35 src="./images/calender.jpg" width=35 border=0> Link to comment https://forums.phpfreaks.com/topic/131305-current-date/ Share on other sites More sharing options...
priti Posted November 4, 2008 Share Posted November 4, 2008 use date object var today_date=new Date(); More on below http://www.devguru.com/technologies/javascript/10585.asp Link to comment https://forums.phpfreaks.com/topic/131305-current-date/#findComment-681859 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.