DateTime in filter expression

You can pass the DateTime in FilterParameters and refer it in the expression using @0. Similar code can be found here: Query() Result holds old data