I have created two date fields(Date only type) field1 and field2 in sharepoint list.Field1 default value is now() and field2 value is concat(substring-before(field1, "-"), "-", substring-before(substring-after(field1, "-"), "-") + 1, "-", "10") but I am getting red box around the field2 with ""Only Date or Date and Time Allowed" message.
The same formula for field2 is working without any issues for form libraries. I am having issue only for sharepoint list forms.
Can anybody help me out to resolve this issue?
Any help would be appreciated.