<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : HOWTO: Format date/time values</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : HOWTO: Format date/time values]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 05:57:27 +0000</pubDate>
  <lastBuildDate>Tue, 12 Apr 2011 05:24:57 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=18203</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[HOWTO: Format date/time values :   On further investigation,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18203&amp;PID=63839&amp;title=howto-format-date-time-values#63839</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6724">RichardJ</a><br /><strong>Subject:</strong> 18203<br /><strong>Posted:</strong> 12 April 2011 at 5:24am<br /><br />On further investigation, the formatting code %c respect's the user's settings.]]>
   </description>
   <pubDate>Tue, 12 Apr 2011 05:24:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18203&amp;PID=63839&amp;title=howto-format-date-time-values#63839</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO: Format date/time values : Thanks for the answer.My mistake,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18203&amp;PID=63838&amp;title=howto-format-date-time-values#63838</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6724">RichardJ</a><br /><strong>Subject:</strong> 18203<br /><strong>Posted:</strong> 12 April 2011 at 5:12am<br /><br /><p>Thanks for the answer.</p><p>My mistake, SetFormatString() is on the item not the column.</p><p>The documentation for the method is incorrect here. &nbsp;CXTPReportRecordItem::SetFormatString says to look at the sprintf format specifications whereas for CXTPReportRecordDateTimeItem::SetFormatString I should be looking at the strftime format specifications. &nbsp;The sprintf format specifications don't actually have any codes for dates or times.</p><p>Unfortunately it looks like it's going to be tricky to use the user's/system preferences to do the formatting since this would require translating from one format specification to another.</p>]]>
   </description>
   <pubDate>Tue, 12 Apr 2011 05:12:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18203&amp;PID=63838&amp;title=howto-format-date-time-values#63838</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO: Format date/time values : Hi;I do it this way:  Item=AddItem(new...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18203&amp;PID=63831&amp;title=howto-format-date-time-values#63831</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 18203<br /><strong>Posted:</strong> 11 April 2011 at 3:52pm<br /><br />Hi;<br>I do it this way:<br><br><table width="99%"><tr><td><pre class="BBcode">&nbsp;&nbsp; Item=AddItem(new CXTPReportRecordItemDateTime(COleDateTime(Date)));<br>&nbsp;&nbsp;&nbsp; Item-&gt;SetFormatString("%d.%m.%Y");</pre></td></tr></table><br><br>I can't find a SetFormatString() function in CXTPReportColumn class?!?!<br>]]>
   </description>
   <pubDate>Mon, 11 Apr 2011 15:52:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18203&amp;PID=63831&amp;title=howto-format-date-time-values#63831</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO: Format date/time values : I am adding some date/time values...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18203&amp;PID=63822&amp;title=howto-format-date-time-values#63822</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6724">RichardJ</a><br /><strong>Subject:</strong> 18203<br /><strong>Posted:</strong> 11 April 2011 at 9:31am<br /><br /><p>I am adding some date/time values as CXTPReportRecordItemDateTime items and I would like to format the date and time string displayed in the cell. &nbsp;How do I do this?</p><p>Using Column-&gt;SetFormatString() with a string such as "dd/MM/yyyy HH:mm:ss" (the value from GetLocaleInfo()) doesn't do the job.</p><p><br></p><p>Product: Xtreme Toolkit Pro (MFC) version v15.0<br>Platform: Windows XP (32bit) - SP 3<br>Language: VC++ 2010<br></p>]]>
   </description>
   <pubDate>Mon, 11 Apr 2011 09:31:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18203&amp;PID=63822&amp;title=howto-format-date-time-values#63822</guid>
  </item> 
 </channel>
</rss>