<?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: Date Functions Converting DMY to DM (filtering everyday by Today() function without year) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Date-Functions-Converting-DMY-to-DM-filtering-everyday-by-Today/m-p/16970#M15478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try something like this (using the first column from that periods.mp dataset):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left(Format Date(:PeriodBegin, "ddMonyyyy"), 5)&lt;/P&gt;&lt;P&gt;&lt;IMG /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The downside to doing it this way is that it is no longer numeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Feb 2016 13:18:15 GMT</pubDate>
    <dc:creator>MikeD_Anderson</dc:creator>
    <dc:date>2016-02-12T13:18:15Z</dc:date>
    <item>
      <title>Date Functions Converting DMY to DM (filtering everyday by Today() function without year)</title>
      <link>https://community.jmp.com/t5/Discussions/Date-Functions-Converting-DMY-to-DM-filtering-everyday-by-Today/m-p/16969#M15477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to convert the Date column in format of DMY to DM so I can make analysis of Years as Overlapping. Tried "Date DMY" function and deleting the "year" part but did not help. Need it for two different analysis. The first is the overlapping Sales Data. The attached table "DateTimeFunctionDM" consist of dates which has sales both for two different years (overlapping). Each day producing a sales report comparing Year 2016 and&amp;nbsp; 2015 till the date of report I first need to extract the Day and Month form the DMY format and use the Year as "Overlay". Second job would be creating a column with such a filter that regardless from the Year it filters the sales till DateMonth of Years (lets say if I create the report today it filters the Both the Years till 12/02 to compare both years sales till that date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At another analysis I need to do the same to compare the price fluctuations of Periods between Years. Thus I need to create again a column which displays numeric date column from 05May2014 as 05May. (Table "Periods" attached)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Man thanks in advance for your support!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 12:10:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-Functions-Converting-DMY-to-DM-filtering-everyday-by-Today/m-p/16969#M15477</guid>
      <dc:creator>saitcopuroglu</dc:creator>
      <dc:date>2016-02-12T12:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date Functions Converting DMY to DM (filtering everyday by Today() function without year)</title>
      <link>https://community.jmp.com/t5/Discussions/Date-Functions-Converting-DMY-to-DM-filtering-everyday-by-Today/m-p/16970#M15478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try something like this (using the first column from that periods.mp dataset):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left(Format Date(:PeriodBegin, "ddMonyyyy"), 5)&lt;/P&gt;&lt;P&gt;&lt;IMG /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The downside to doing it this way is that it is no longer numeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 13:18:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-Functions-Converting-DMY-to-DM-filtering-everyday-by-Today/m-p/16970#M15478</guid>
      <dc:creator>MikeD_Anderson</dc:creator>
      <dc:date>2016-02-12T13:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Date Functions Converting DMY to DM (filtering everyday by Today() function without year)</title>
      <link>https://community.jmp.com/t5/Discussions/Date-Functions-Converting-DMY-to-DM-filtering-everyday-by-Today/m-p/16971#M15479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A href="https://community.jmp.com/people/michael.anderson"&gt;michael.anderson&lt;/A&gt;​ it could help the Period problem by characterising and combining them into one column but filtering and working with numeric data need some other solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 20:58:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-Functions-Converting-DMY-to-DM-filtering-everyday-by-Today/m-p/16971#M15479</guid>
      <dc:creator>saitcopuroglu</dc:creator>
      <dc:date>2016-02-26T20:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Date Functions Converting DMY to DM (filtering everyday by Today() function without year)</title>
      <link>https://community.jmp.com/t5/Discussions/Date-Functions-Converting-DMY-to-DM-filtering-everyday-by-Today/m-p/16972#M15480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, saitcopuroglu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I came up with two alternatives, not sure if either really solves your problem.&amp;nbsp; The first, which you may have tried, was a formula column like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DateDMY( Day(:PeriodBegin), Month(:PeriodBegin), 1904 );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So just fix the year at 1904, which is really year 0 for JMP date-time values.&amp;nbsp; JMP does &lt;STRONG&gt;*not*&lt;/STRONG&gt; offer a format with just month and day, and JMP does not have a custom formatter a la Excel that would allow you to put in letters to get just what you want. So with that approach, you are going to see the 1904&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another approach I took was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month(:PeriodBegin) * 100 + Day(:PeriodBegin)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That gives you something that is a number but only has the month and day in it. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="11095_saitco_monthday.png" style="width: 405px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/2806iEDB8D8108CAD7C75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="11095_saitco_monthday.png" alt="11095_saitco_monthday.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But now it is not a real date, so you can't use date functions on it to extract the month or day - you'd have to do your own math.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, there are some other ideas in case they might help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 02:04:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-Functions-Converting-DMY-to-DM-filtering-everyday-by-Today/m-p/16972#M15480</guid>
      <dc:creator>Eric_Hill</dc:creator>
      <dc:date>2016-10-19T02:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date Functions Converting DMY to DM (filtering everyday by Today() function without year)</title>
      <link>https://community.jmp.com/t5/Discussions/Date-Functions-Converting-DMY-to-DM-filtering-everyday-by-Today/m-p/16973#M15481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do DayofYear() or WeekofYear() plus a Year() column.&amp;nbsp; It won't give you an exact date but it will be comparable (Day of year may be off with leap years).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="11107_pastedImage_0.png" style="width: 610px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/2815i9829EB8E63DF99A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="11107_pastedImage_0.png" alt="11107_pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 02:05:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-Functions-Converting-DMY-to-DM-filtering-everyday-by-Today/m-p/16973#M15481</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2016-10-19T02:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Date Functions Converting DMY to DM (filtering everyday by Today() function without year)</title>
      <link>https://community.jmp.com/t5/Discussions/Date-Functions-Converting-DMY-to-DM-filtering-everyday-by-Today/m-p/16974#M15482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or even just break it out with a column for each day, month and year. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="11108_pastedImage_0.png" style="width: 610px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/2816i744329BE7A02757D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="11108_pastedImage_0.png" alt="11108_pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I might be missing what you're trying to do though.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 02:05:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-Functions-Converting-DMY-to-DM-filtering-everyday-by-Today/m-p/16974#M15482</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2016-10-19T02:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Date Functions Converting DMY to DM (filtering everyday by Today() function without year)</title>
      <link>https://community.jmp.com/t5/Discussions/Date-Functions-Converting-DMY-to-DM-filtering-everyday-by-Today/m-p/16975#M15483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the inputs.&lt;/P&gt;&lt;P&gt;Both approach the task in different ways but still lacking the JSL automation abilities&lt;SPAN style="font-size: 10pt;"&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The script should consist of "Sales Date ≦Today()" filtering for a real automation (otherwise &lt;SPAN style="font-size: 10pt;"&gt;a manual Local Data Filter selection is still a must for an everyday report)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If the created columns suggested by &lt;A href="https://community.jmp.com/people/vince.faller0"&gt;vince.faller0&lt;/A&gt;​ or &lt;A href="https://community.jmp.com/people/EricHill"&gt;EricHill&lt;/A&gt;​ or &lt;A href="https://community.jmp.com/people/michael.anderson"&gt;michael.anderson&lt;/A&gt;​ what is the way of writing the JSL which filters the columns as with the logic of "&lt;SPAN style="font-size: 10pt;"&gt;Sales Date ≦Today()" ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Many thanks in advance&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;P.S.: &lt;SPAN style="font-size: 10pt;"&gt;Maybe the Developers could add a function under "Date and Time" which converts the ddmmyyyy format to ddmm and still can be approached and used as Date Data and Today() function may dismiss the Year?.... Just an idea....&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Mar 2016 08:20:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-Functions-Converting-DMY-to-DM-filtering-everyday-by-Today/m-p/16975#M15483</guid>
      <dc:creator>saitcopuroglu</dc:creator>
      <dc:date>2016-03-05T08:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Date Functions Converting DMY to DM (filtering everyday by Today() function without year)</title>
      <link>https://community.jmp.com/t5/Discussions/Date-Functions-Converting-DMY-to-DM-filtering-everyday-by-Today/m-p/16976#M15484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dt &amp;lt;&amp;lt; Select Where(Month(:Sales Date)&amp;gt; Month(Today()) &amp;amp; Day(:SalesDate )&amp;gt;Day(Today())) &amp;lt;&amp;lt;Hide &amp;lt;&amp;lt; Exclude&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't see why that wouldn't work, unless I'm misunderstanding.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 13:14:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-Functions-Converting-DMY-to-DM-filtering-everyday-by-Today/m-p/16976#M15484</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2016-03-07T13:14:56Z</dc:date>
    </item>
  </channel>
</rss>

