Map and parse values in an array

I’m having trouble figuring out how to map and convert an array of strings into an array of date values. In javascript, that looks like:

const dateStringMap = ["2022-09-01", "2022-09-02", "2022-09-03"];
dateStringArray.map((dateString) => new Date(dateString).valueOf());

I have tried using “Iterator” → “Set Variable” → “Aggregator”, but I only get one value out of the aggregator.

What is the recommended way to do this?