You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
I’m trying to filter a list of invoices using a WHERE clause that includes a date condition. I’m encountering a type mismatch error when comparing a DateTime? field (DueDate) with a string representation of a date.
"Message": "Operator '>' incompatible with operand types 'DateTime?' and 'String'"
// Incorrect approach causing the error
var where = "Type=="ACCPAY" AND DueDate > "2024-01-01" ";
// Assume getinvoices() is a method/property that uses this "where" clause
// e.g. getinvoices(where);