<?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: How to escape characters in DATEFORMAT pattern? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-to-escape-characters-in-dateformat-pattern/qaa-p/13846672#M4877515</link>
    <description>&lt;P&gt;Unfortunately Ultralite does not provide functions, however, I did manage this scenario in the Android layer, using the approach that you suggested! Thank you &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Mar 2018 14:58:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-03-22T14:58:45Z</dc:date>
    <item>
      <title>How to escape characters in DATEFORMAT pattern?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-escape-characters-in-dateformat-pattern/qaq-p/13846668</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;In French (Canada) locale, the pattern for a date is something like "yy-MM-dd HH 'h' nn", where the 'h' here means h, and not a pattern part (as instance, "18-03-22 14 h 01). The default escape for cases like that (in Android, for example) is the single quote symbol, but it does not seem to work for Ultralite.&lt;/P&gt;
&lt;P&gt;Is there a way to escape symbols in DATEFORMAT call?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 13:06:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-escape-characters-in-dateformat-pattern/qaq-p/13846668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-03-22T13:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to escape characters in DATEFORMAT pattern?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-escape-characters-in-dateformat-pattern/qaa-p/13846669#M4877512</link>
      <description>&lt;P&gt;Une technique de force brute, peut-être?
&lt;/P&gt;&lt;PRE&gt;REPLACE(DATEFORMAT(current timestamp,'yy-MM-dd HH / nn'),'/','h')                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                &lt;P&gt;&lt;/P&gt;
&lt;P&gt;18-03-22 13 h 23 
&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 13:24:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-escape-characters-in-dateformat-pattern/qaa-p/13846669#M4877512</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2018-03-22T13:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to escape characters in DATEFORMAT pattern?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-escape-characters-in-dateformat-pattern/qaa-p/13846670#M4877513</link>
      <description>&lt;P&gt;Thank you &lt;A href="http://sqlanywhere-forum.sap.com/users/2/breck-carter"&gt;@Breck Carter&lt;/A&gt;! It did work, although this pattern is a little bit flexible, and I can have a lot of other formats which may led to the same problem. It would be nice if the ' symbol escaped the character, as it already happens with FORMAT SQL Server macro and the default date/time pattern escaping in Android and iOS frameworks.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 13:31:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-escape-characters-in-dateformat-pattern/qaa-p/13846670#M4877513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-03-22T13:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to escape characters in DATEFORMAT pattern?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-escape-characters-in-dateformat-pattern/qaa-p/13846671#M4877514</link>
      <description>&lt;P&gt;Historically, there has been some vendor resistance to adding client-side formatting features to SQL... and it's now probably safe to say it's not ever going to happen.&lt;/P&gt;
&lt;P&gt;However, the alternative is fun: Write your own CREATE FUNCTION supérieurDATEFORMAT ( in_timestamp TIMESTAMP, in_pattern VARCHAR ( 100 ) ) RETURNS VARCHAR ( 100 ).&lt;/P&gt;
&lt;P&gt;&lt;IMG width="600" src="https://simonmartin.ch/articles/supercoder/images/supercoder3000.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 13:50:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-escape-characters-in-dateformat-pattern/qaa-p/13846671#M4877514</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2018-03-22T13:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to escape characters in DATEFORMAT pattern?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-escape-characters-in-dateformat-pattern/qaa-p/13846672#M4877515</link>
      <description>&lt;P&gt;Unfortunately Ultralite does not provide functions, however, I did manage this scenario in the Android layer, using the approach that you suggested! Thank you &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 14:58:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-escape-characters-in-dateformat-pattern/qaa-p/13846672#M4877515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-03-22T14:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to escape characters in DATEFORMAT pattern?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-escape-characters-in-dateformat-pattern/qaa-p/13846673#M4877516</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;Is there a way to escape symbols in DATEFORMAT call?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Well, I was sure you would escape those with a backslash (like with control characters, so here as 'yy-MM-dd HH \\h nn)' but that does not work, either, the backslash appears as-is, and the 'h' is still treated as a date part...&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 15:18:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-escape-characters-in-dateformat-pattern/qaa-p/13846673#M4877516</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2018-03-22T15:18:39Z</dc:date>
    </item>
  </channel>
</rss>

