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

✨ Tired of the same old Windows Start Menu and Taskbar?

  ✨ Tired of the same old Windows Start Menu and Taskbar? In this video, I’ll show you how to completely customize your Windows experience ...