$9.99
This scenario template takes a date in date type (not in string), and returns the end date of the current month and the end date of the next month in string (not in date type).
Functions are super useful in Make, but there aren't many functions available compared to things like Google Sheets, so you sometimes have to improvise. However, getting the end date of a certain month isn't so easy.
To use this webhook-based scenario, you'll want to post to the webhook you will be issuing when you upload this blueprint into your environment from another scenario via an 'HTTP > Make a request' module.
{
"date": "{{now}}"
}
You can start playing around with {{now}} and replace it with whatever date you want to pass.
You will be getting a response like this below:
{
"endOfThisMonth": "2024-12-31",
"endOfNextMonth": "2025-01-01"
}
Note that the values returned are strings.