Month: June 2007

SharePoint: Converting a datetime for use in a CAML query

No Picture

To convert a system.datetime to the format yyyy-mm-ddThh:mm:ssZ (used in CAML queries), callMicrosoft.SharePoint.Utilities.SPUtility.CreateISO8601DateTimeFromSystemDateTimeSee http://msdn2.microsoft.com/en-us/library/microsoft.sharepoint.utilities.sputility.createiso8601datetimefromsystemdatetime.aspx for more info.

Read More »