2010-06-27 43 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> 
相關問題