Date format issue with text aggregator

I have a scenario that grabs comments from Youtube.

The dates coming from that module are already formatted like this:
September 10, 2024 4:18 AM

However, when I try and display the date in the text aggregator, Make is re-formatting it like this:
2024-09-10T08:18:29.000Z

I don’t know why that’s happening; the date from YT is the format I want to display.

Why is the text aggregator formatting it like that?



1 Like

Hey Jonathan,

it looks like that’s a date variable so its not technically formatted to look like that, Make just visualizes it for you. You can use the formatDate() function to change it to whatever you need.

Something else form the screenshots you have → while the Repeater does work here, you can use an Iterator module to go through arrays one item at a time as it doesn’t need configuring.

Also, are you processing the array in some way? Because if you are not, you can straight up delete the Array aggregator and the Repeater modules and have the Text aggregator after the Watch module directly.

Ok, so I tried the formatDate() idea and got this error:

Failed to map ‘value’: Function ‘formatDate’ finished with error! ‘Thu Sep 12 2024 20:30:11 GMT+0000 (Coordinated Universal Time),“MM/DD/YYYY”’ is not a valid date.

In regards to the rest of the flow, at the end, I plan on sending all the data in the body of a Gmail email, which is why I chose the text aggregator.


1 Like

Change , to ; inside the function.


Change “now” with the provided date from YT, then it should work.

Man, I feel like a noob, can’t believe I missed that.

Thx for the help.

1 Like