var formattedDate = new Date(parseInt(thisObj.Patient.DateOfBirth.substr(6)));
After checking the output of my Date Object, I see the following result.
Wed May 04 2011 09:30:00 GMT+0530 (GMT+05:30)
I am wondering how I can split May, 04, and 2011 into separate variables like
var Month = May;
var Date = 04;
var Year = 2011;
In addition, I would like to know how to determine if the person's Age is less than one year old or not.