You can use DATETIME_PARSE() to assemble a date like so:
DATETIME_PARSE(
YEAR(TODAY()) & "/" & {Month} & "/01",
"YYYY/MMMM/DD"
)
Thank you for the response, this works perfectly for my requirement. A quick follow on question. The results to the formula are apt to December but say for January, I’ll need it to reflect the year as 2022. How would you recommend altering the formula then?
Thank you for the response, this works perfectly for my requirement. A quick follow on question. The results to the formula are apt to December but say for January, I’ll need it to reflect the year as 2022. How would you recommend altering the formula then?
Use a DATEADD function with an IF() statement to determine if you need to add a year or not.
DATEADD(
DATETIME_PARSE({Month}, "MMMM"),
IF(DATETIME_PARSE({Month}, "MMMM") > TODAY(), 0, 1),
"year"
)
(This formula uses a simplified syntax to the one above since declaring just a month appears to return the first day of that month for the current year. This may be less reliable than the original format shown since you’re explicitly declaring a year and day. If you need a more foolproof formula, substitute this formula’s DATETIME_PARSE format for the own shown above)