Get exact age from datepicker?

Update: I’ve added the “let itemObj” lines to the following code which is returning the correct date from the dataset. So now I just need to figure out how to change the " var today = new Date (); fr " from the code above to = programDate

export function programSelectDropdown_change(event) {

 if($w('#programSelectDropdown').value==='Soccer') {
        $w('#soccerRegistrationBox').expand();
    } else {
        $w('#soccerRegistrationBox').collapse();
    }

 let itemObj = $w("#programsDataset").getCurrentItem();
 let programDate = itemObj.coedSpringStart
        console.log("program date:",programDate)

}