Formatting Notion datetime to Slack Block correct output

Hi,

I have a notion database which has a property named: Time (GMT+2)

This property shows Date and Time of the event, for example: 27/03/2025 22:10

I have a scenario when there is a new event added in Notion database, send notification to Slack channel.

Notion gives this value for the time selected: 2025-03-27T22:10:00.000+02:00

I have used {{formatDate(1.properties_value.Time (GMT+2).start; “YYYY-MM-DD”)}} and it works great.

But I started using Slack Blocks to improve the output message visually, but parsedate doesnt work in the Slack Blocks and I couldnt figure out how to format the value Notion gives to do correct output with only Date and Time. Without formatdate, the output from the Slack Block is: 2025-03-27T22:10:00.000+02:00

How to do the formatting correctly in the Slack Block so it shows only Date and Time?

1 Like