<?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 String to Date format (in script) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/String-to-Date-format-in-script/m-p/242509#M707701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've checked various posts, but I just can't find the answer, so I do apologise if the answer is already posted somewhere... please link if appropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a number of date columns which are in a string format of 'dd-Mmm-yyyy'... I would like to have the script convert the string to a date format, so that I don't need to play around with values within the document itself, unless of course someone thinks differently??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate any help you have on this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Dec 2011 12:26:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-30T12:26:50Z</dc:date>
    <item>
      <title>String to Date format (in script)</title>
      <link>https://community.qlik.com/t5/QlikView/String-to-Date-format-in-script/m-p/242509#M707701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've checked various posts, but I just can't find the answer, so I do apologise if the answer is already posted somewhere... please link if appropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a number of date columns which are in a string format of 'dd-Mmm-yyyy'... I would like to have the script convert the string to a date format, so that I don't need to play around with values within the document itself, unless of course someone thinks differently??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate any help you have on this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2011 12:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-to-Date-format-in-script/m-p/242509#M707701</guid>
      <dc:creator />
      <dc:date>2011-12-30T12:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: String to Date format (in script)</title>
      <link>https://community.qlik.com/t5/QlikView/String-to-Date-format-in-script/m-p/242510#M707703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;If i understood your question properly, You could use Date#() to convert Strings to dates.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sample code would be as follows.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Date(Date#(DateField,'DD-MM-YYYY'),'DD-MM-YYYY')&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if you have time stamp in you table, you use TimeStamp#() to conver the string to timestamp&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hope this helps you.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;-Sridhar&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2011 12:32:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-to-Date-format-in-script/m-p/242510#M707703</guid>
      <dc:creator>sridhar240784</dc:creator>
      <dc:date>2011-12-30T12:32:22Z</dc:date>
    </item>
    <item>
      <title>String to Date format (in script)</title>
      <link>https://community.qlik.com/t5/QlikView/String-to-Date-format-in-script/m-p/242511#M707705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sridhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was playing with the Date# function, but never thought to add the Date function around it (Ooops)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I amended the format to 'dd-Mmm-yyyy' which works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2011 12:39:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-to-Date-format-in-script/m-p/242511#M707705</guid>
      <dc:creator />
      <dc:date>2011-12-30T12:39:00Z</dc:date>
    </item>
  </channel>
</rss>

