<?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 Convert Date to Num in Automations in Qlik Automate</title>
    <link>https://community.qlik.com/t5/Qlik-Automate/Convert-Date-to-Num-in-Automations/m-p/1989079#M917</link>
    <description>&lt;P&gt;I need to have a numeric Date value to filter a report with, in Automations.&lt;BR /&gt;I'm able to create the first variable that holds a date using the "Date Formula", but I'm unable to convert it correctly into a numeric value with the second variable.&lt;BR /&gt;Tried using the "Convert Number Formula" but it returns 0.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Current Outcome:&lt;/STRONG&gt;&lt;BR /&gt;Variable1: 2022-10-01 -&amp;gt;&lt;BR /&gt;Convert into Number -&amp;gt;&lt;BR /&gt;Variable2: 0&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Expected Outcome:&lt;/STRONG&gt;&lt;BR /&gt;Variable1: 2022-10-01 -&amp;gt;&lt;BR /&gt;Convert into Number -&amp;gt;&lt;BR /&gt;Variable2: 44839&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2022 11:35:51 GMT</pubDate>
    <dc:creator>NiklasV</dc:creator>
    <dc:date>2022-10-05T11:35:51Z</dc:date>
    <item>
      <title>Convert Date to Num in Automations</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Convert-Date-to-Num-in-Automations/m-p/1989079#M917</link>
      <description>&lt;P&gt;I need to have a numeric Date value to filter a report with, in Automations.&lt;BR /&gt;I'm able to create the first variable that holds a date using the "Date Formula", but I'm unable to convert it correctly into a numeric value with the second variable.&lt;BR /&gt;Tried using the "Convert Number Formula" but it returns 0.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Current Outcome:&lt;/STRONG&gt;&lt;BR /&gt;Variable1: 2022-10-01 -&amp;gt;&lt;BR /&gt;Convert into Number -&amp;gt;&lt;BR /&gt;Variable2: 0&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Expected Outcome:&lt;/STRONG&gt;&lt;BR /&gt;Variable1: 2022-10-01 -&amp;gt;&lt;BR /&gt;Convert into Number -&amp;gt;&lt;BR /&gt;Variable2: 44839&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 11:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Convert-Date-to-Num-in-Automations/m-p/1989079#M917</guid>
      <dc:creator>NiklasV</dc:creator>
      <dc:date>2022-10-05T11:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Date to Num in Automations</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Convert-Date-to-Num-in-Automations/m-p/1989107#M920</link>
      <description>&lt;P&gt;There ought to be better ways but you can convert the data to unix time, divide with 86400 (no of seconds in a day) and add&amp;nbsp;25569 (serial number of unix start time - 1970-01-01).&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{add: {divide: {date: {$.vDate}, 'U'}, 86400}, 25569}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 12:53:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Convert-Date-to-Num-in-Automations/m-p/1989107#M920</guid>
      <dc:creator>blaise</dc:creator>
      <dc:date>2022-10-05T12:53:13Z</dc:date>
    </item>
  </channel>
</rss>

