<?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>topic Time Conversion in List Box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Time-Conversion-in-List-Box/m-p/1015193#M942989</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this question has been asked multiple times, but I can't seem to get it working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me give you a brief background. I'm pulling data from a Oracle DB. The time fields are in Unix time which I'm able to convert to a readable date/time from within the SQL&lt;/P&gt;&lt;P&gt;i.e:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1453066277083793 jive_text_macro" jivemacro_uid="_1453066277083793" modifiedtitle="true"&gt;
&lt;P&gt;to_char(to_date('01011970','ddmmyyyy') + 1/24/60/60 * SDATE, 'mm/dd/yyyy HH24:MI:SS')&lt;/P&gt;
&lt;P&gt;AS SDATE&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the date/time being spit out is in UTC time. I've attempted to convert this to CST (my timezone) from within the SQL statement and that did not work. So I've been attempting to do it from the list box itself, but every time I attempt to do it from the expression it loads nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="111805" alt="1-17-2016 3-33-53 PM.png" class="jive-image image-1" src="/legacyfs/online/111805_1-17-2016 3-33-53 PM.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also attempted from multiple other places and all fails. Your help is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Jan 2016 21:36:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-17T21:36:26Z</dc:date>
    <item>
      <title>Time Conversion in List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Conversion-in-List-Box/m-p/1015193#M942989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this question has been asked multiple times, but I can't seem to get it working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me give you a brief background. I'm pulling data from a Oracle DB. The time fields are in Unix time which I'm able to convert to a readable date/time from within the SQL&lt;/P&gt;&lt;P&gt;i.e:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1453066277083793 jive_text_macro" jivemacro_uid="_1453066277083793" modifiedtitle="true"&gt;
&lt;P&gt;to_char(to_date('01011970','ddmmyyyy') + 1/24/60/60 * SDATE, 'mm/dd/yyyy HH24:MI:SS')&lt;/P&gt;
&lt;P&gt;AS SDATE&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the date/time being spit out is in UTC time. I've attempted to convert this to CST (my timezone) from within the SQL statement and that did not work. So I've been attempting to do it from the list box itself, but every time I attempt to do it from the expression it loads nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="111805" alt="1-17-2016 3-33-53 PM.png" class="jive-image image-1" src="/legacyfs/online/111805_1-17-2016 3-33-53 PM.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also attempted from multiple other places and all fails. Your help is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jan 2016 21:36:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Conversion-in-List-Box/m-p/1015193#M942989</guid>
      <dc:creator />
      <dc:date>2016-01-17T21:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Time Conversion in List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Conversion-in-List-Box/m-p/1015194#M942990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the expression you've used in the list box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest that you take a look at the QV date and time functions in the HELP or reference manual, namely&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor529"&gt;&lt;/A&gt;&lt;A name="ConvertToLocalTime("&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;&lt;STRONG&gt;ConvertToLocalTime(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="Italic"&gt;timestamp [, place [, ignore_dst=false]]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Converts a UTC or GMT timestamp to local time as a dual value. The place can be any of a number of cities, places and time zones around the world. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;Valid places and time zones:&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Abu Dhabi, Adelaide, Alaska, Almaty, Amsterdam, Arizona, Astana, Athens, Atlantic Time (Canada), Auckland, Azores, Baghdad, Baku, Bangkok, Beijing, Belgrade, Berlin, Bern, Bogota, Brasilia, Bratislava, Brisbane, Brussels, Bucharest, Budapest, Buenos Aires, Cairo, Canberra, Cape Verde Is., Caracas, Casablanca, Central America, Central Time (US &amp;amp; Canada), Chennai, Chihuahua, Chongqing, Copenhagen, Darwin, Dhaka, Eastern Time (US &amp;amp; Canada), Edinburgh, Ekaterinburg, Fiji, Georgetown, Greenland, Greenwich Mean Time : Dublin, Guadalajara, Guam, Hanoi, Harare, Hawaii, Helsinki, Hobart, Hong Kong, Indiana (East), International Date Line West, Irkutsk, Islamabad, Istanbul, Jakarta, Jerusalem, Kabul, Kamchatka, Karachi, Kathmandu, Kolkata, Krasnoyarsk, Kuala Lumpur, Kuwait, Kyiv, La Paz, Lima, Lisbon, Ljubljana, London, Madrid, Magadan, Marshall Is., Mazatlan, Melbourne, Mexico City, Mid-Atlantic, Midway Island, Minsk, Monrovia, Monterrey, Moscow, Mountain Time (US &amp;amp; Canada), Mumbai, Muscat, Nairobi, New Caledonia, New Delhi, Newfoundland, Novosibirsk, Nuku'alofa, Nuku´alofa, Osaka, Pacific Time (US &amp;amp; Canada), Paris, Perth, Port Moresby, Prague, Pretoria,Quito, Rangoon, Riga, Riyadh, Rome, Samoa, Santiago, Sapporo, Sarajevo, Saskatchewan, Seoul, Singapore, Skopje, Sofia, Solomon Is., Sri Jayawardenepura, St. Petersburg, Stockholm, Sydney, Taipei, Tallinn, Tashkent, Tbilisi, Tehran, Tijuana, Tokyo, Ulaan Bataar, Urumqi, Warsaw, Wellington, West Central Africa, Vienna, Vilnius, Vladivostok, Volgograd, Yakutsk, Yerevan or Zagreb. &lt;/P&gt;&lt;P&gt;Also GMT, GMT-01:00, GMT+04:00 etc. are valid places. &lt;/P&gt;&lt;P&gt;The resulting time is adjusted for daylight savings time, unless the third parameter is set to 1 or true(). &lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ConvertToLocalTime(’2007-11-10 23:59:00’,’Paris’)&lt;/SPAN&gt; returns ’2007-11-11 00:59:00’ and the corresponding internal timestamp representation. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ConvertToLocalTime(UTC(), ’GMT-05:00’)&lt;/SPAN&gt; returns the time for the North American east coast, e.g. New York. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jan 2016 22:21:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Conversion-in-List-Box/m-p/1015194#M942990</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-17T22:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Time Conversion in List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Conversion-in-List-Box/m-p/1015195#M942991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I had to change the SQL to reflect the time as yyyy-mm-dd HH24:MI:SS instead. I did not see where the actual format had to be a specific way!&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14530697129547040 jive_text_macro" jivemacro_uid="_14530697129547040" modifiedtitle="true"&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;to_char(to_date(&lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit;"&gt;'01011970'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit;"&gt;'ddmmyyyy'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;) + 1/24/60/60 * SDATE, &lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit;"&gt;'yyyy-mm-dd HH24:MI:SS'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt; S&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit; line-height: 12pt;"&gt;DATE&lt;/SPAN&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Now, is there a way before saving it to a qvd to convert the time?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jan 2016 22:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Conversion-in-List-Box/m-p/1015195#M942991</guid>
      <dc:creator />
      <dc:date>2016-01-17T22:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Time Conversion in List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Conversion-in-List-Box/m-p/1015196#M942992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3102"&gt;QlikView Date fields&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code might look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ConvertToLocalTime( Date, '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Central Time (US &amp;amp; Canada)') as DateConverted;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date#( SDATE, 'YYYY-MM-DD hh:mm:ss') as Date;&lt;/P&gt;&lt;P&gt;//Your SQL code in the load script&lt;/P&gt;&lt;P&gt;SQL SELECT ...&lt;/P&gt;&lt;P&gt;FROM ....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of &lt;SPAN style="font-size: 13.3333px;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Central Time (US &amp;amp; Canada)' you may need to input your localized place string taken from your OS time zone control. Or try something like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ConvertToLocalTime( Date, 'GMT-06:00&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;') as DateConverted;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jan 2016 23:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Conversion-in-List-Box/m-p/1015196#M942992</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-17T23:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Time Conversion in List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Conversion-in-List-Box/m-p/1015197#M942993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yusof,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once u selected expression in list box -&amp;gt;EDIT click on edit button and write expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=ConvertToLocalTime( Date, 'GMT-05:30&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;') as YourFieldName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SAVE the expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;click OK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;check the data in List box.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;i hope it will help to you.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 06:59:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Conversion-in-List-Box/m-p/1015197#M942993</guid>
      <dc:creator>ramasaisaksoft</dc:creator>
      <dc:date>2016-01-18T06:59:46Z</dc:date>
    </item>
  </channel>
</rss>

