Hi sir,
I'have written small function in javascript for date (month and year), this is good working in IE at onclick event and current month-8 , year-2008 are displaying but in firefox3,opera, & sufari the current month - 8 and current year- 108 are showing.
I wanna current year in fire fox.
[code goes Here:]
[CODE=javascript]function validateDate()
{
var d = new Date();
var current_month = d.getMonth()+1;
var current_year = d.getYear();
alert(current_m onth + current_year);
}
[/CODE]
Pls help me.
Thanks
I'have written small function in javascript for date (month and year), this is good working in IE at onclick event and current month-8 , year-2008 are displaying but in firefox3,opera, & sufari the current month - 8 and current year- 108 are showing.
I wanna current year in fire fox.
[code goes Here:]
[CODE=javascript]function validateDate()
{
var d = new Date();
var current_month = d.getMonth()+1;
var current_year = d.getYear();
alert(current_m onth + current_year);
}
[/CODE]
Pls help me.
Thanks
Comment