By default getFullYear should work. Might be a possibility that you are not having the appropriate object for usage.
You follow this approach
var dateString = "05-Jun-2013";
var dateStringArray = dateString.split("-");
var yearValue = dateStringArray[2];