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:]
Expand|Select|Wrap|Line Numbers
- function validateDate()
- {
- var d = new Date();
- var current_month = d.getMonth()+1;
- var current_year = d.getYear();
- alert(current_month + current_year);
- }
Thanks