Sunday, November 13, 2011

Converting Date and Time Values


SPQuery query = new SPQuery();

query.Query = 
    String.Format("<Where><Gt><FieldRef Name='Modified'/>" +
    "<Value Type='DateTime' 
    StorageTZ='TRUE'>{0}</Value></Gt></Where>",
    SPUtility.CreateISO8601DateTimeFromSystemDateTime
    (DateTime.UtcNow.AddDays(-5)));


No comments:

Post a Comment

Thank you for Commenting Will reply soon ......

Featured Posts

Installing vim openssh server openssh client build essential net tools i...

Installing Essential Packages in Ubuntu: `vim`, `opensshserver`, `opensshclient`, `buildessential`, and `nettools` When working on an Ubuntu...