?
Solved

CAML to C#? CreateISO8601DateTimeFromSystemDateTime?

Posted on 2010-11-18
1
Medium Priority
?
1,344 Views
Last Modified: 2012-05-10
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,
0
Comment
Question by:m_a_n
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 22

Accepted Solution

by:
p_davis earned 2000 total points
ID: 34172516
it appears that using the s format will render an iso860 date

http://msdn.microsoft.com/en-us/library/az4se3k1%28VS.71%29.aspx
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question