2010-06-27 47 views

回答

5

要以今天的日期比较:

<Where> 
    <Lt> 
    <FieldRef Name='Created'/> 
    <Value type='DateTime'><Today /></Value> 
    </Lt> 
</Where> 

比较今天的日期和时间

<Where> 
    <Lt> 
    <FieldRef Name='Created'/> 
    <Value type='DateTime' IncludeDateTime='TRUE'><Today /></Value> 
    </Lt> 
</Where> 

比较方昨日

<Where> 
    <Lt> 
    <FieldRef Name='Created'/> 
    <Value type='DateTime'><Today Offset='-1' /></Value> 
    </Lt> 
</Where> 
2

比较昨天的日期应该是 “OffsetDays”

<Where> 
    <Lt> 
    <FieldRef Name='Created'/> 
    <Value type='DateTime'><Today OffsetDays='-1' /></Value> 
    </Lt> 
</Where> 
相关问题