GetFullYear() function does not come after setting date from calendar?

Chosen1

New Member
I got a calendar which I want to take birthday of user. Its \[code\]id\[/code\] is "DatePicker"\[code\]var tarih = new Date();tarih =($("#DatePicker").val());alert(tarih); \[/code\]When I run this code I get the date from calendar. The problem occurs when I try to get year which is selected at calendar:\[code\]var tarih = new Date();tarih =($("#DatePicker").val());alert(tarih.getFullYear()); \[/code\]The code above didn't work. I checked date functions at SO but couldn't find this kind of example.
 
Back
Top