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> Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.