Skip to main content
Solved

1st of the month date formula

  • November 22, 2022
  • 3 replies
  • 92 views

Forum|alt.badge.img+7

Is there a date formula to calculate the 1st of the month based on a date? For example, I want to calculate 11/1/2022 for 10/15/22, 10/5,22, etc. = Wendy

Best answer by Kamille_Parks11

If you want a usable date rather than a string, you can do:

DATETIME_PARSE(DATETIME_FORMAT(DATEADD({Date}, 1, 'month'), "MM/YYYY"), "MM/YYYY")

3 replies

JonathanBowen
Forum|alt.badge.img+18

Hi @Wendy_Yelsik - do you mean the 1st of the next month? If so, you can do this:

DATETIME_FORMAT(DATEADD(Date, 1, 'month'), 'MM/01/YYYY')

(You don’t need the middle field, I just displayed this to show how it was derived)


Forum|alt.badge.img+7
  • Author
  • Inspiring
  • November 22, 2022

perfect! Thank you. - Wendy


Kamille_Parks11
Forum|alt.badge.img+27

If you want a usable date rather than a string, you can do:

DATETIME_PARSE(DATETIME_FORMAT(DATEADD({Date}, 1, 'month'), "MM/YYYY"), "MM/YYYY")