<?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: Working with dates in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Working-with-dates/m-p/265336#M51690</link>
    <description>&lt;P&gt;First, I suggest you take some time to read about JMP date, time functions and formats.&amp;nbsp; It really will help you with the kinds of things you are looking to do.&amp;nbsp; So taking what you asked for your first question in your response, you can use the informat() function to specify any particular date or date time for evaluation.&amp;nbsp; So taking my last format and making it more specific, it would be:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( :The Date &amp;lt; informat("09/23/2012", "m/d/y" ), 1, 2 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want it to be down to an hour, minute, second, you just have to specify it, along with the JMP format that is required to read it.&lt;/P&gt;
&lt;P&gt;For your analysis of one day vs. all other days, I would simply create a new column or a new transformation using the following formula&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( informat("09/23/2012 23:59:59", "m//d/y h:m:s")  &amp;lt; :The Date &amp;lt; 
informat( "09/24/2012", "m/d/y"), 1, 2 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 May 2020 19:34:11 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2020-05-08T19:34:11Z</dc:date>
    <item>
      <title>Working with dates</title>
      <link>https://community.jmp.com/t5/Discussions/Working-with-dates/m-p/265238#M51673</link>
      <description>Hi, I have a set of data with information from 2010 to 2020. I'm trying to create a formula column for data before and after 2012 so that that I can compare these 2 sets of data. How do I manipulate the date data? Thanks.</description>
      <pubDate>Fri, 08 May 2020 15:13:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Working-with-dates/m-p/265238#M51673</guid>
      <dc:creator>SCWong</dc:creator>
      <dc:date>2020-05-08T15:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Working with dates</title>
      <link>https://community.jmp.com/t5/Discussions/Working-with-dates/m-p/265262#M51677</link>
      <description>&lt;P&gt;If your date column is a JMP date value, and lets assume the date's column name is "The Date", then creating a new formula column, formula is fairly simple&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(Year(:The Date) &amp;lt; 2012, 1, 2)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;1 would be assigned for all rows where The Date is less than 2012 and a 2 will be assigned for 2012 and greater&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 16:28:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Working-with-dates/m-p/265262#M51677</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-05-08T16:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Working with dates</title>
      <link>https://community.jmp.com/t5/Discussions/Working-with-dates/m-p/265271#M51679</link>
      <description>Thanks! What if it's a specific date for a year?&lt;BR /&gt;On the same topic, the set of data is rather skewed, with daily data from 2010 to 2020, and minute data for a specific day. In the graph builder - how would I be able to analyse the set of data for that specific day vs the rest? I tried to drag date into "group by x", but it doesnt seem to give me options to specifically group them. I can probably manually set a row state to these specific data, but I was wondering if there was a more direct way to work that out.</description>
      <pubDate>Fri, 08 May 2020 16:51:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Working-with-dates/m-p/265271#M51679</guid>
      <dc:creator>SCWong</dc:creator>
      <dc:date>2020-05-08T16:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Working with dates</title>
      <link>https://community.jmp.com/t5/Discussions/Working-with-dates/m-p/265336#M51690</link>
      <description>&lt;P&gt;First, I suggest you take some time to read about JMP date, time functions and formats.&amp;nbsp; It really will help you with the kinds of things you are looking to do.&amp;nbsp; So taking what you asked for your first question in your response, you can use the informat() function to specify any particular date or date time for evaluation.&amp;nbsp; So taking my last format and making it more specific, it would be:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( :The Date &amp;lt; informat("09/23/2012", "m/d/y" ), 1, 2 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want it to be down to an hour, minute, second, you just have to specify it, along with the JMP format that is required to read it.&lt;/P&gt;
&lt;P&gt;For your analysis of one day vs. all other days, I would simply create a new column or a new transformation using the following formula&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( informat("09/23/2012 23:59:59", "m//d/y h:m:s")  &amp;lt; :The Date &amp;lt; 
informat( "09/24/2012", "m/d/y"), 1, 2 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 19:34:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Working-with-dates/m-p/265336#M51690</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-05-08T19:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Working with dates</title>
      <link>https://community.jmp.com/t5/Discussions/Working-with-dates/m-p/265340#M51692</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;has steered you correctly. &lt;LI-MESSAGE title="Using dates, times, datetimes and durations in JMP" uid="68689" url="https://community.jmp.com/t5/JMPer-Cable/Using-dates-times-datetimes-and-durations-in-JMP/m-p/68689#U68689" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;has good information about these topics and will likely be useful for you.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 19:46:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Working-with-dates/m-p/265340#M51692</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2020-05-08T19:46:11Z</dc:date>
    </item>
  </channel>
</rss>

