Javascript dropdown list to show current date as default selected value

what can be the reasons for the same code which works perfectly in notepad to not show its result in a jsp application done using eclipse??anything to do with settings?
I am not able to display the current date as default in dd/mm/yyyy format in drop down menu…only dd and yyyy apears but month isnt apearing as default…
can u suggest alternative logic and its code to implement the same??

Show us what you’re doing and we can help you to get it going.