Link to home
Start Free TrialLog in
Avatar of m_a_n
m_a_n

asked on

CAML to C#? CreateISO8601DateTimeFromSystemDateTime?

Hi all,
I  will appreciate if somebody can provide C# that can replace this CAML query.

//In CAML this outputs date and time correctly. I need the C# code which can output same value.
CreateISO8601DateTimeFromSystemDateTime(StartTime)

//For reference the CAML query is as follows:
------------------------------------------------------------------------
                  <Geq>
                        <FieldRef Name='" + DateField + "'/>
                        <Value Type='DateTime'>" + Microsoft.SharePoint.Utilities.SPUtility.CreateISO8601DateTimeFromSystemDateTime(StartTime) + "</Value>
                  </Geq>
------------------------------------------------------------------------

Thanks in advance,
ASKER CERTIFIED SOLUTION
Avatar of p_davis
p_davis

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial