meenakshi
05-15-2008, 07:21 PM
hi
i m unable to rectify this problem and m unable to get a solution also
pls help me.
i want to have the current date showing in the input field
var cdat=(new Date());
var newcdatsep1="-";
var newcdat="00" + cdat.getDate();
var newcdat1="00" + (cdat.getMonth()+1);
newcdat=newcdat.substring(newcdat.length - 2);
newcdat1=newcdat1.substring(newcdat1.length - 2);
var newcdat3=newcdat+newcdatsep1+newcdat1;
<td>Date</td>
<td>
<input type="text" value="newcdat3" tabindex="9" size="20">
</td>
here i thought the value should show me the current date but it is not showing anything
what i have to do to achieve this
if someone can help me rectify this i wud be really greatful
thanks
anand
i m unable to rectify this problem and m unable to get a solution also
pls help me.
i want to have the current date showing in the input field
var cdat=(new Date());
var newcdatsep1="-";
var newcdat="00" + cdat.getDate();
var newcdat1="00" + (cdat.getMonth()+1);
newcdat=newcdat.substring(newcdat.length - 2);
newcdat1=newcdat1.substring(newcdat1.length - 2);
var newcdat3=newcdat+newcdatsep1+newcdat1;
<td>Date</td>
<td>
<input type="text" value="newcdat3" tabindex="9" size="20">
</td>
here i thought the value should show me the current date but it is not showing anything
what i have to do to achieve this
if someone can help me rectify this i wud be really greatful
thanks
anand