The Community will be temporarily unavailable starting on Friday February 28. We’ll be back as soon as we can! To learn more, check out our Announcements blog post.
Jan 05, 2022 09:58 AM
I’m trying to use DATETIME_FORMAT to format a date calculated by a formula to the way I want it to be displayed. I have to use DATETIME_FORMAT rather than the settings button because I’m inserting it into an automated email, which defaults to YYYY-MM-DD format instead of the settings.
It seems like this should be possible but I keep getting an error. Here’s my current formula: DATETIME_FORMAT((DATEADD(TODAY(),14, “days”), ‘DD-MM-YYYY’)
The center formula DATEADD(TODAY(),14, “days”) works properly on its own, so I know it’s something about adding the formatting piece.
Is it possible to do this in one formula?
Solved! Go to Solution.
Jan 05, 2022 10:33 AM
I’m not at my computer right now, but I think that should work. I would check to make sure that you’re using straight quotes, not stylized quotes.
Jan 05, 2022 10:33 AM
I’m not at my computer right now, but I think that should work. I would check to make sure that you’re using straight quotes, not stylized quotes.
Jan 05, 2022 11:14 AM
Thanks! I guess that was it. I entered it again, in the same way I swear I’ve entered it previously, but it works now.
Here’s the final product:
DATETIME_FORMAT(DATEADD(TODAY(),14, “days”), “MM-DD-YYYY”)