Hi,
I have a field called ApprovalDate2.
ApprovalDate2 column is of type single line of text.
I am updating the above field with todays date in the update item action as below
formatDateTime(utcNow(),'MM-dd-yyyy')
But I am getting the error as below. Please let me know if I am making any mistake
'A text field contains invalid data. Please check the value and try again.'
Regards,
Sudheer
Try changing the column format in the SharePoint List from "Single line of Text" to "Multiple Lines of Text"
FormatDateTime returns a string value so that should work as expected. Are you sure this error is related to ApprovalDate2 formatDateTime() value? Try also formatting without the hyphens.
formatDateTime(utcNow(),'MMddyyyy')
I am not suggesting to remove hyphens as a suggested solution but lets see what error you get?
Thanks
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2