<?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 : How to set date time format</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : How to set date time format]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 07:23:45 +0000</pubDate>
  <lastBuildDate>Mon, 07 Jul 2008 02:14:44 +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=10856</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[How to set date time format : I think a suggestion would be...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10856&amp;PID=37862&amp;title=how-to-set-date-time-format#37862</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 10856<br /><strong>Posted:</strong> 07 July 2008 at 2:14am<br /><br />I think a suggestion would be to overwrite the SetFormatString (in this case a bad name) to use the OleDateTime formatting like: LANG_USER_DEFAULT and DATEVALUEONLY etc.. <DIV>&nbsp;</DIV><DIV>Most often users would prefer the local settings of Windows (?). And for some reason it is rather complex to convert the OleDateTime formatting strings to the Windows Date Time formatting strings and vise versa.</DIV><DIV>&nbsp;</DIV><DIV>Another way is to use the %x and %X formatting, and then maybe play around with the setlocale(LC_ALL,"").</DIV>]]>
   </description>
   <pubDate>Mon, 07 Jul 2008 02:14:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10856&amp;PID=37862&amp;title=how-to-set-date-time-format#37862</guid>
  </item> 
  <item>
   <title><![CDATA[How to set date time format : I just found it uses m_strFormatString....  which...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10856&amp;PID=36076&amp;title=how-to-set-date-time-format#36076</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 10856<br /><strong>Posted:</strong> 31 May 2008 at 8:26pm<br /><br />I just found it uses m_strFormatString....<DIV>&nbsp;</DIV><DIV>which is set in CXTPReportRecordItem::SetFormatString</DIV><DIV>&nbsp;</DIV><DIV>but this isn't mentioned anywhere in the docs.</DIV><DIV>&nbsp;</DIV><DIV>Also, since it's a member string, how do I set it to NULL?&nbsp; It needs to be NULL to use locale settings...</DIV>]]>
   </description>
   <pubDate>Sat, 31 May 2008 20:26:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10856&amp;PID=36076&amp;title=how-to-set-date-time-format#36076</guid>
  </item> 
  <item>
   <title><![CDATA[How to set date time format : Hi  I can see that the report...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10856&amp;PID=36075&amp;title=how-to-set-date-time-format#36075</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 10856<br /><strong>Posted:</strong> 31 May 2008 at 8:24pm<br /><br />Hi<DIV>&nbsp;</DIV><DIV>I can see that the report control uses a CXTPReportControlLocale object to set date time formats for CXTPReportRecordItemDateTime items</DIV><DIV>&nbsp;</DIV><DIV>But how can I change the date time format itself?</DIV><DIV>&nbsp;</DIV><DIV>Why no SetDateTimeFormat(LPCSTR strFormat) function?</DIV><DIV>&nbsp;</DIV><DIV>It's not using the system or user locale formats.&nbsp; Neither long nor short date nor time.&nbsp; At least it's not showing the format I see in Control Panel-&gt;Regional Settings.</DIV><DIV>&nbsp;</DIV><DIV>So I can only assume it's using a hard-coded format string?</DIV><DIV>&nbsp;</DIV><DIV>It's very confusing, and documentation is very sparse on this topic.</DIV>]]>
   </description>
   <pubDate>Sat, 31 May 2008 20:24:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10856&amp;PID=36075&amp;title=how-to-set-date-time-format#36075</guid>
  </item> 
 </channel>
</rss>