<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: ToText default format for DateTime values in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/totext-default-format-for-datetime-values/qaa-p/12727195#M4776424</link>
    <description>&lt;P&gt;Another option instead of using ToText:&lt;/P&gt;&lt;P&gt;1.  Put a text box on the report where you want to show the date time.&lt;/P&gt;&lt;P&gt;2.  Pull the Data Date special field into the text box.&lt;/P&gt;&lt;P&gt;3.  Put your cursor at the end of DataDate in the text box and add a space.&lt;/P&gt;&lt;P&gt;4.  Pull the Data Time special field into the text box.&lt;/P&gt;&lt;P&gt;This will show the DateTime in the format that you want it.&lt;/P&gt;&lt;P&gt;-Dell&lt;/P&gt;</description>
    <pubDate>Fri, 16 Dec 2022 17:41:38 GMT</pubDate>
    <dc:creator>DellSC</dc:creator>
    <dc:date>2022-12-16T17:41:38Z</dc:date>
    <item>
      <title>ToText default format for DateTime values</title>
      <link>https://community.sap.com/t5/technology-q-a/totext-default-format-for-datetime-values/qaq-p/12727191</link>
      <description>&lt;P&gt;I have a formula displayed in the top right corner of many reports called CurrentDateTimeString. The formula is ToText(CurrentDateTime). What I want to know is exactly what Windows OS regional settings are being used by Crystal to convert that DateTime to a string when no format is specified in the ToText function. Is this documented anywhere?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 20:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/totext-default-format-for-datetime-values/qaq-p/12727191</guid>
      <dc:creator>afanofosc</dc:creator>
      <dc:date>2022-12-09T20:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: ToText default format for DateTime values</title>
      <link>https://community.sap.com/t5/technology-q-a/totext-default-format-for-datetime-values/qaa-p/12727192#M4776421</link>
      <description>&lt;P&gt;Thank you for visiting SAP Community to get answers to your questions. Since you're asking a question here for the first time, I recommend that you familiarize yourself with: &lt;A href="https://community.sap.com/resources/questions-and-answers" target="test_blank"&gt;https://community.sap.com/resources/questions-and-answers&lt;/A&gt;, as it provides tips for preparing questions that draw responses from our members. &lt;/P&gt;&lt;P&gt;For example, you can:&lt;/P&gt;&lt;P&gt;- outline what steps you took to find answers (and why they weren't helpful)&lt;/P&gt;&lt;P&gt;- share screenshots of what you've seen/done&lt;/P&gt;&lt;P&gt;- make sure you've applied the appropriate tags&lt;/P&gt;&lt;P&gt;- use a more descriptive subject line&lt;/P&gt;&lt;P&gt;The more details you provide, the more likely it is that members will be able to respond. Feel free to also take our Q&amp;amp;A  tutorial at: &lt;A href="https://developers.sap.com/tutorials/community-qa.html" target="test_blank"&gt;https://developers.sap.com/tutorials/community-qa.html&lt;/A&gt;      &lt;/P&gt;&lt;P&gt; Should you wish, you can revise your question by selecting Actions, then Edit.&lt;/P&gt;&lt;P&gt;  By adding a picture to your profile you encourage readers to respond: &lt;A href="https://developers.sap.com/tutorials/community-profile.html" target="test_blank"&gt;https://developers.sap.com/tutorials/community-profile.html&lt;/A&gt;                               &lt;/P&gt;&lt;P&gt;Questions on how to draw responses from members? Check out this discussion on how to improve questions. &lt;A href="https://groups.community.sap.com/t5/welcome-corner-discussions/advice-from-sap-champions-questions-and-answers/m-p/123609/thread-id/1094" target="test_blank"&gt;https://groups.community.sap.com/t5/welcome-corner-discussions/advice-from-sap-champions-questions-and-answers/m-p/123609/thread-id/1094&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 20:25:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/totext-default-format-for-datetime-values/qaa-p/12727192#M4776421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2022-12-09T20:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: ToText default format for DateTime values</title>
      <link>https://community.sap.com/t5/technology-q-a/totext-default-format-for-datetime-values/qaa-p/12727193#M4776422</link>
      <description>&lt;P&gt;I believe it will use whatever the Windows Default format is for the computer where it's being run.&lt;/P&gt;&lt;P&gt;-Dell&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 21:39:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/totext-default-format-for-datetime-values/qaa-p/12727193#M4776422</guid>
      <dc:creator>DellSC</dc:creator>
      <dc:date>2022-12-09T21:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: ToText default format for DateTime values</title>
      <link>https://community.sap.com/t5/technology-q-a/totext-default-format-for-datetime-values/qaa-p/12727194#M4776423</link>
      <description>&lt;P&gt;That is definitely not what Crystal does. There is no "Windows Default format" for a combined Date and Time value. In C# there is a "standard format" called "G" which is not defined at the OS level. For C# that means "short date plus a space plus long time" but in our software prior to running a Crystal report using the .Net C# classes provided by Crystal if I change the current thread CultureInfo DateTimeFormatInfo object's ShortDatePattern and its LongTimePattern Crystal is ignoring those changes when it outputs a full DateTime value using ToText in a report but it is using the ShortDatePattern when it formats a Date field on the same report. The ToText(CurrentDateTime) field is set to "use default" formatting, i.e., not custom field formatting. The same is true for the Date fields. But nothing I have tried is able to convince Crystal to use the custom ShortDatePattern and LongTimePattern values that I have specified for the current thread when it outputs a DateTime value using the ToText function with no format specified.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 17:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/totext-default-format-for-datetime-values/qaa-p/12727194#M4776423</guid>
      <dc:creator>afanofosc</dc:creator>
      <dc:date>2022-12-16T17:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: ToText default format for DateTime values</title>
      <link>https://community.sap.com/t5/technology-q-a/totext-default-format-for-datetime-values/qaa-p/12727195#M4776424</link>
      <description>&lt;P&gt;Another option instead of using ToText:&lt;/P&gt;&lt;P&gt;1.  Put a text box on the report where you want to show the date time.&lt;/P&gt;&lt;P&gt;2.  Pull the Data Date special field into the text box.&lt;/P&gt;&lt;P&gt;3.  Put your cursor at the end of DataDate in the text box and add a space.&lt;/P&gt;&lt;P&gt;4.  Pull the Data Time special field into the text box.&lt;/P&gt;&lt;P&gt;This will show the DateTime in the format that you want it.&lt;/P&gt;&lt;P&gt;-Dell&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 17:41:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/totext-default-format-for-datetime-values/qaa-p/12727195#M4776424</guid>
      <dc:creator>DellSC</dc:creator>
      <dc:date>2022-12-16T17:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: ToText default format for DateTime values</title>
      <link>https://community.sap.com/t5/technology-q-a/totext-default-format-for-datetime-values/qaa-p/12727196#M4776425</link>
      <description>&lt;P&gt;Changing the hundreds of report format files that we have is not an option. What I need is someone from SAP who knows to tell me what Crystal is using to decide how to format a DateTime value using ToText without a format specified. It should be using the ShortDatePattern and LongTimePattern that I am customizing but it is not. &lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 18:24:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/totext-default-format-for-datetime-values/qaa-p/12727196#M4776425</guid>
      <dc:creator>afanofosc</dc:creator>
      <dc:date>2022-12-16T18:24:12Z</dc:date>
    </item>
  </channel>
</rss>

