<?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 Re: Creating a date in the current year with same MM/DD as older date. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Creating-a-date-in-the-current-year-with-same-MM-DD-as-older/m-p/1508416#M44048</link>
    <description>&lt;P&gt;This formula below works with the data in my sample script when I paste it in a Text object.&lt;/P&gt;&lt;P&gt;=Date(Num(Month(H2)) &amp;amp; '/' &amp;amp; Day(H2) &amp;amp; '/' &amp;amp; Year(Now()))&lt;/P&gt;&lt;P&gt;In my script for this example, I loaded a one-record table with the date you provided.&lt;/P&gt;&lt;P&gt;Dates:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Key, H2&lt;BR /&gt;1, 11/16/2008&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;You may have to adjust it to your data. Please post a sample of what you're using, in the event that it doesn't work when you plug it in.&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
    <pubDate>Sat, 17 Nov 2018 04:09:41 GMT</pubDate>
    <dc:creator>lblumenfeld</dc:creator>
    <dc:date>2018-11-17T04:09:41Z</dc:date>
    <item>
      <title>Creating a date in the current year with same MM/DD as older date.</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-date-in-the-current-year-with-same-MM-DD-as-older/m-p/1508394#M44046</link>
      <description>&lt;P&gt;&lt;EM&gt;Hello clever people. Need some assistance with dates&amp;nbsp;please. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;We track some MI on our employee longevity so that we can acknowledge&amp;nbsp;employee anniversaries for key milestones.&amp;nbsp;I am loading information from a Sybase DB and base everything off the Employee_Start_Date. &amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If the start date is 11/16/2008 I would like to create a date reflective of this year so 11/16/2018. I can therefore easily subtract the two dates and see that the employee is celebrating 10 years with the firm. This needs to carry forward for future years too. &amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In EXCEL is can do this by =DATE(YEAR(NOW()),MONTH(H2),DAY(H2)) where H2 is the start date. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I am not having much success getting this same result in Qlikview. HELP...&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-date-in-the-current-year-with-same-MM-DD-as-older/m-p/1508394#M44046</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a date in the current year with same MM/DD as older date.</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-date-in-the-current-year-with-same-MM-DD-as-older/m-p/1508416#M44048</link>
      <description>&lt;P&gt;This formula below works with the data in my sample script when I paste it in a Text object.&lt;/P&gt;&lt;P&gt;=Date(Num(Month(H2)) &amp;amp; '/' &amp;amp; Day(H2) &amp;amp; '/' &amp;amp; Year(Now()))&lt;/P&gt;&lt;P&gt;In my script for this example, I loaded a one-record table with the date you provided.&lt;/P&gt;&lt;P&gt;Dates:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Key, H2&lt;BR /&gt;1, 11/16/2008&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;You may have to adjust it to your data. Please post a sample of what you're using, in the event that it doesn't work when you plug it in.&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Nov 2018 04:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-date-in-the-current-year-with-same-MM-DD-as-older/m-p/1508416#M44048</guid>
      <dc:creator>lblumenfeld</dc:creator>
      <dc:date>2018-11-17T04:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a date in the current year with same MM/DD as older date.</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-date-in-the-current-year-with-same-MM-DD-as-older/m-p/1508445#M44049</link>
      <description>Makedate(Year(today()),Month(H2),Day(H2)) should work.</description>
      <pubDate>Sat, 17 Nov 2018 06:30:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-date-in-the-current-year-with-same-MM-DD-as-older/m-p/1508445#M44049</guid>
      <dc:creator>kmiryalaj</dc:creator>
      <dc:date>2018-11-17T06:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a date in the current year with same MM/DD as older date.</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-date-in-the-current-year-with-same-MM-DD-as-older/m-p/1508462#M44050</link>
      <description>&lt;P&gt;You can use the &lt;A href="https://help.qlik.com/en-US/sense/November2018/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTimeFunctions/setdateyear.htm" target="_self"&gt;SetDateYear &lt;/A&gt;function: SetDateYear('11/16/2008', 2018) -&amp;gt; 11/16/2018&lt;/P&gt;</description>
      <pubDate>Sat, 17 Nov 2018 07:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-date-in-the-current-year-with-same-MM-DD-as-older/m-p/1508462#M44050</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-11-17T07:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a date in the current year with same MM/DD as older date.</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-date-in-the-current-year-with-same-MM-DD-as-older/m-p/1512444#M44051</link>
      <description>Thanks for the assist. Much appreciated.</description>
      <pubDate>Mon, 26 Nov 2018 18:03:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-date-in-the-current-year-with-same-MM-DD-as-older/m-p/1512444#M44051</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-26T18:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a date in the current year with same MM/DD as older date.</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-date-in-the-current-year-with-same-MM-DD-as-older/m-p/1512445#M44052</link>
      <description>Thanks for the help. Appreciate you posting a solution.</description>
      <pubDate>Mon, 26 Nov 2018 18:03:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-date-in-the-current-year-with-same-MM-DD-as-older/m-p/1512445#M44052</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-26T18:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a date in the current year with same MM/DD as older date.</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-date-in-the-current-year-with-same-MM-DD-as-older/m-p/1512636#M44053</link>
      <description>You're welcome. Since you accept it as a solution, would you mind marking it as a solution as well?</description>
      <pubDate>Tue, 27 Nov 2018 07:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-date-in-the-current-year-with-same-MM-DD-as-older/m-p/1512636#M44053</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-11-27T07:34:37Z</dc:date>
    </item>
  </channel>
</rss>

