I am new to Coda so my apologies if this is a rookie mistake.
I have a date field for birthdays with format of 31/12/2023. I have a second date formula field also with format 31/12/2023 to calculate the next birthday anniversary.
The formula I am using appears to be fit for purpose however i have a “Cannot convert value to the specified format” error.
From what I can tell the output is of type date but will not abide by the input column and/or column format. I also assumed the output was text and tried using Format() function to no avail - the output is the same.
The formula for the next birthday field:
thisRow.Birthday
.Substitute(
thisRow.Birthday.Year(), Today().Year()
)
.WithName(
Next,
If(
Next > Today(),
Next,
thisRow.Birthday
.Substitute(
thisRow.Birthday.Year(), Today().Year() + 1
)
)
)
Below is the result showing errors. There appears to be a mismatch between the configured column format and the formula result format. The result is in the correct format but interpreted incorrectly as a different (Nth American) format.
Is this a known bug or is my approach wrong?
Thank you,