<?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: dateformat (...) to regional date format in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/dateformat-to-regional-date-format/qaa-p/13832323#M4863166</link>
    <description>&lt;P&gt;Thanks for pointing this out - I had thought the server's location would actually be meant with &lt;EM&gt;"the computer's regional..."&lt;/EM&gt; - thinking of a local engine.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Sep 2022 04:43:35 GMT</pubDate>
    <dc:creator>VolkerBarth</dc:creator>
    <dc:date>2022-09-15T04:43:35Z</dc:date>
    <item>
      <title>dateformat (...) to regional date format</title>
      <link>https://community.sap.com/t5/technology-q-a/dateformat-to-regional-date-format/qaq-p/13832319</link>
      <description>&lt;P&gt;How do I convert a date into a string formatted per the computer's regional date setting?  I only see how to specify explicit formats.  For example, in PowerBuilder, I would specify date format string "[shortdate]".  Forgive me if I'm missing something simple.  Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 11:36:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dateformat-to-regional-date-format/qaq-p/13832319</guid>
      <dc:creator>dhkom</dc:creator>
      <dc:date>2022-09-14T11:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: dateformat (...) to regional date format</title>
      <link>https://community.sap.com/t5/technology-q-a/dateformat-to-regional-date-format/qaa-p/13832320#M4863163</link>
      <description>&lt;P&gt;The server does not automatically format dates according to the client connection's local OS settings. Generally, that is left up to the client app which can format the date itself or have the server do it using explicit formats via dateformat arguments or the DATE_FORMAT option (&lt;A href="https://dcx.sap.com/index.html#sqla170/en/html/813a8b556ce21014958ea27cd4f0b21c.html*loio813a8b556ce21014958ea27cd4f0b21c)"&gt;https://dcx.sap.com/index.html#sqla170/en/html/813a8b556ce21014958ea27cd4f0b21c.html*loio813a8b556ce21014958ea27cd4f0b21c)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 12:05:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dateformat-to-regional-date-format/qaa-p/13832320#M4863163</guid>
      <dc:creator>johnsmirnios</dc:creator>
      <dc:date>2022-09-14T12:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: dateformat (...) to regional date format</title>
      <link>https://community.sap.com/t5/technology-q-a/dateformat-to-regional-date-format/qaa-p/13832321#M4863164</link>
      <description>&lt;P&gt;If you really need to format dates within the server (say, because there is no client app in-place) and you are using Windows as platform, you could take the (somewhat difficult) route to use a native function calling the &lt;A href="https://docs.microsoft.com/en-us/windows/win32/api/datetimeapi/nf-datetimeapi-getdateformatex"&gt;GetDateFormatEx() WinAPI&lt;/A&gt; or similar functions...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sqlanywhere.blogspot.com/2012/12/calling-getopenfilename-from-sql.html"&gt;Here's an article from Breck's blog&lt;/A&gt; with a sample using the GetOpenFileName() WinAPI - just to show the general approach.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 04:21:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dateformat-to-regional-date-format/qaa-p/13832321#M4863164</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2022-09-15T04:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: dateformat (...) to regional date format</title>
      <link>https://community.sap.com/t5/technology-q-a/dateformat-to-regional-date-format/qaa-p/13832322#M4863165</link>
      <description>&lt;P&gt;Note that this approach would give a date in the format &amp;amp; language of the OS where the database server is running rather than the client. Each client should follow its own rules.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 04:32:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dateformat-to-regional-date-format/qaa-p/13832322#M4863165</guid>
      <dc:creator>johnsmirnios</dc:creator>
      <dc:date>2022-09-15T04:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: dateformat (...) to regional date format</title>
      <link>https://community.sap.com/t5/technology-q-a/dateformat-to-regional-date-format/qaa-p/13832323#M4863166</link>
      <description>&lt;P&gt;Thanks for pointing this out - I had thought the server's location would actually be meant with &lt;EM&gt;"the computer's regional..."&lt;/EM&gt; - thinking of a local engine.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 04:43:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dateformat-to-regional-date-format/qaa-p/13832323#M4863166</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2022-09-15T04:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: dateformat (...) to regional date format</title>
      <link>https://community.sap.com/t5/technology-q-a/dateformat-to-regional-date-format/qaa-p/13832324#M4863167</link>
      <description>&lt;P&gt;That's true. If it is a local engine on the desktop, the regional settings would match. If it is running as a service or as another user, the settings still may not match even if it is on the same machine.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 08:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dateformat-to-regional-date-format/qaa-p/13832324#M4863167</guid>
      <dc:creator>johnsmirnios</dc:creator>
      <dc:date>2022-09-15T08:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: dateformat (...) to regional date format</title>
      <link>https://community.sap.com/t5/technology-q-a/dateformat-to-regional-date-format/qaa-p/13832325#M4863168</link>
      <description>&lt;P&gt;That would depend on the used "lpLocaleName" entry within the API call, methinks.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 08:32:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dateformat-to-regional-date-format/qaa-p/13832325#M4863168</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2022-09-15T08:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: dateformat (...) to regional date format</title>
      <link>https://community.sap.com/t5/technology-q-a/dateformat-to-regional-date-format/qaa-p/13832326#M4863169</link>
      <description>&lt;P&gt;Thanks, all.  You bring up good points on the complexities.  In this case, the server is Windows, and the client is a web application running in the Browser.  The GetDateFormatEx() solution on the server will work out now, but maybe not in the future.  Perhaps an application setting should define the date display format in this case?  I'll give this some thought.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 09:08:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dateformat-to-regional-date-format/qaa-p/13832326#M4863169</guid>
      <dc:creator>dhkom</dc:creator>
      <dc:date>2022-09-15T09:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: dateformat (...) to regional date format</title>
      <link>https://community.sap.com/t5/technology-q-a/dateformat-to-regional-date-format/qaa-p/13832327#M4863170</link>
      <description>&lt;P&gt;Just to clarify: You can also set options like date_order/date_format/timestamp_format per connection and can use dateformat() with the according connection properties to provide connection-specific formatting, so possibly a client app could also provide regional settings to the server via those options...&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 09:41:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dateformat-to-regional-date-format/qaa-p/13832327#M4863170</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2022-09-15T09:41:05Z</dc:date>
    </item>
  </channel>
</rss>

