<?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 How to compare file time with today's date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-compare-file-time-with-today-s-date/m-p/65748#M10915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, can anyone show me how to compare file time of a source file with today's date? I am trying to write script to stop the app running if file time is earlier than today's date. Thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Feb 2018 15:45:13 GMT</pubDate>
    <dc:creator>posywang</dc:creator>
    <dc:date>2018-02-21T15:45:13Z</dc:date>
    <item>
      <title>How to compare file time with today's date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-file-time-with-today-s-date/m-p/65748#M10915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, can anyone show me how to compare file time of a source file with today's date? I am trying to write script to stop the app running if file time is earlier than today's date. Thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 15:45:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-file-time-with-today-s-date/m-p/65748#M10915</guid>
      <dc:creator>posywang</dc:creator>
      <dc:date>2018-02-21T15:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare file time with today's date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-file-time-with-today-s-date/m-p/65749#M10916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;for the file time you have this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;&lt;STRONG&gt;FileTime()&lt;/STRONG&gt; =&amp;gt; it return a timestamp, so yo should do this: &lt;STRONG&gt;Date(Filetime())&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;IT IS A SCRIPT FUNCTION&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;and for today date, you have this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;&lt;STRONG&gt;Today()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;so you can compare like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(filetime(file.extention) &amp;lt;..&amp;gt;..&amp;lt;=..&amp;gt;=.. today(), ..., ...) as ...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 15:56:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-file-time-with-today-s-date/m-p/65749#M10916</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-02-21T15:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare file time with today's date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-file-time-with-today-s-date/m-p/65750#M10917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;exit script when filetime( 'your file location' ) &amp;lt;&amp;nbsp; today()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 16:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-file-time-with-today-s-date/m-p/65750#M10917</guid>
      <dc:creator>bnichol</dc:creator>
      <dc:date>2018-02-21T16:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare file time with today's date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-file-time-with-today-s-date/m-p/65751#M10918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this and change your script accordingly. &lt;/P&gt;&lt;P&gt;Change the file paths and filenames accordingly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vFilePath = 'P:\SetAnalysis_Udemy\';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vFileTime = Date(FileTime('$(vFilePath)Bubble.qvw'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF $(vFileTime) &amp;gt;= Date(Today()) Then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * INLINE [&lt;/P&gt;&lt;P&gt;Name, ID&lt;/P&gt;&lt;P&gt;A, 2&lt;/P&gt;&lt;P&gt;B, 3&lt;/P&gt;&lt;P&gt;C, 4&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exit SCRIPT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 16:42:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-file-time-with-today-s-date/m-p/65751#M10918</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-02-21T16:42:50Z</dc:date>
    </item>
  </channel>
</rss>

