$ 0 0 what is your udf data type ?is it alphanumeric ? try below SELECT DATEADD(dd,cast(A1.U_UDF as int), $[OBTN.MnfDate.date])