Hi All, Thanks for your time
I have a string field in SQL server which includes the date values in mm/dd/yyyy format for example ( 04/22/2022) this field also includes some text values like "Good", N/A" -
I need to add 1 year to the date values only excluding the "Good","N/A - so i tried the following but iam getting the "month number out of range error"
I cannot use datetime tool because i have to handle string values...so what i have is
1).First convert into date format in the formula tool
2).Then add 1 year to that date value
3).again convert into mm/dd/yyyy format
Error: ConvError: Formula (633): DATETIMEPARSE: Cannot convert "02/23/2022" to a date/time with format "%Y-%m-%d": Month number is out of range 1..12: '23/2022'
Formula tool: Data type of this field is string
IF ISNULL([DR - Plan Signoff Date]) OR [DR - Plan Signoff Date] IN ('Gap','N/A') THEN [DR - Plan Signoff Date]
ELSEIF [Category] IN ('CDOB','Non-CDOB') AND ( !IsNull([DR - Plan Signoff Date]) OR [DR - Plan Signoff Date] NOT IN ('Gap','N/A') )
THEN DateTimeFormat(DateTimeAdd(DateTimeParse([DR - Plan Signoff Date], "%Y-%m-%d" ) ,1,"year"),"%m/%d/%Y")
ELSE [DR - Plan Signoff Date]
ENDIF
any guidance please