# Map and parse values in an array

**URL:** <https://community.make.com/t/map-and-parse-values-in-an-array/4160>\
**Category:** Questions\
**Created:** [September 7, 2022, 2:41pm UTC](https://community.make.com/t/map-and-parse-values-in-an-array/4160 "2022-09-07T14:41:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertplugd](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@robertplugd](https://community.make.com/u/robertplugd)\
**Post date:** [September 7, 2022, 2:41pm UTC](https://community.make.com/t/map-and-parse-values-in-an-array/4160/1 "2022-09-07T14:41:46Z")

</div>

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:

```js
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?

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [September 7, 2023, 2:42pm UTC](https://community.make.com/t/map-and-parse-values-in-an-array/4160/2 "2023-09-07T14:42:42Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


