diff --git a/packages/nocodb/src/db/conditionV2.ts b/packages/nocodb/src/db/conditionV2.ts index d1670525c6..325b3d63f1 100644 --- a/packages/nocodb/src/db/conditionV2.ts +++ b/packages/nocodb/src/db/conditionV2.ts @@ -663,7 +663,7 @@ const parseConditionV2 = async ( genVal = genVal.format(dateFormat).toString(); // keep YYYY-MM-DD only for date genVal = - column.uidt === UITypes.Date ? val.substring(0, 10) : genVal; + column.uidt === UITypes.Date ? genVal.substring(0, 10) : genVal; } }