0
筛选我有一个DateTime参数:如何通过一年fetchxml
随着FetchXML,我将尝试只是我的日期时间参数的年份部分过滤我的数据:
<filter type="and">
<condition attribute="proposedstart" operator="in" value="@EventYear"/>
</filter>
proposedstart
是日期时间和@EventYear
是日期时间
我知道做到这一点的方法之一是说on-or-before
eventyear + 1和on-or-after
1/1/eventyear
我怎样才能解决这个问题? 如何过滤FetchXML中datetime字段的年份与我的datetime参数相同的年份?