Dear All,
i want to use between operator in query expression for 2016 on premises.
I have date field in Employee Entity - TextDate.
In the Department i have Date fields as FromDate and ToDate, if the TextDate in lies between FromDate and ToDate than i want to show the records of Employee entity .
if TextDate doesn't lies between FromDate and ToDate i dont want to show any records.
i have tried the query Expression like this and fetch XML also i tried.
QueryExpression Condition
GreaterEqual
new ConditionExpression("FromDate ", ConditionOperator.
GreaterEqual
, TextDate);
new ConditionExpression("new_enddate", ConditionOperator.
LessEqual
, TextDate);
But still it doesn't worked for me.
can Anyone guide me for the Same.
Regards,
Krishna