<?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: Getting work week (WW) from &amp;quot;m/d/y h:m:s AM|PM&amp;quot; format in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Getting-work-week-WW-from-quot-m-d-y-h-m-s-AM-PM-quot-format/m-p/248115#M48698</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; New Column( "Date_new",
Numeric, Continuous,
Formula(WeekOfYear(:date)),
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;All you need to do is to pull out the work week from the original :Date column.&amp;nbsp; Your formula for the "New Date" column was using a Format() function, which returns a character string.&amp;nbsp; But that issue can all be circumvented&amp;nbsp; with the above column definition.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2020 19:11:05 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2020-02-18T19:11:05Z</dc:date>
    <item>
      <title>Getting work week (WW) from "m/d/y h:m:s AM|PM" format</title>
      <link>https://community.jmp.com/t5/Discussions/Getting-work-week-WW-from-quot-m-d-y-h-m-s-AM-PM-quot-format/m-p/248102#M48696</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have a trouble to getting the work week from rows. Let's say I have a date and time format like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joshua_0-1582050202000.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21810i4D52F0792E5E65F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="joshua_0-1582050202000.png" alt="joshua_0-1582050202000.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried following things by following the JSL manual&amp;nbsp;@ page 150 and so forth but could not resolve this,&lt;BR /&gt;first I thought that I need to get rid of time values&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;dt &amp;lt;&amp;lt; New Column( "Date_new",
Numeric, Continuous,
Formula(Format(:Name("Date"), "m/d/y")),
);&lt;/PRE&gt;&lt;P&gt;Then now I have the dates like this&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joshua_1-1582050456837.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21811i706FB3E3D4723BB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="joshua_1-1582050456837.png" alt="joshua_1-1582050456837.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Next I tried to get ww of Date_new&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; newcolumn("ww",Numeric, "Nominal",Week Of Year (Date MDY(:Date),3));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But got nothing! Why?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joshua_2-1582050619470.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21812iEF561AF0F3B2DD78/image-size/medium?v=v2&amp;amp;px=400" role="button" title="joshua_2-1582050619470.png" alt="joshua_2-1582050619470.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 18:30:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Getting-work-week-WW-from-quot-m-d-y-h-m-s-AM-PM-quot-format/m-p/248102#M48696</guid>
      <dc:creator>joshua</dc:creator>
      <dc:date>2020-02-18T18:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getting work week (WW) from "m/d/y h:m:s AM|PM" format</title>
      <link>https://community.jmp.com/t5/Discussions/Getting-work-week-WW-from-quot-m-d-y-h-m-s-AM-PM-quot-format/m-p/248113#M48697</link>
      <description>No answers yet ?</description>
      <pubDate>Tue, 18 Feb 2020 19:10:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Getting-work-week-WW-from-quot-m-d-y-h-m-s-AM-PM-quot-format/m-p/248113#M48697</guid>
      <dc:creator>joshua</dc:creator>
      <dc:date>2020-02-18T19:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Getting work week (WW) from "m/d/y h:m:s AM|PM" format</title>
      <link>https://community.jmp.com/t5/Discussions/Getting-work-week-WW-from-quot-m-d-y-h-m-s-AM-PM-quot-format/m-p/248115#M48698</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; New Column( "Date_new",
Numeric, Continuous,
Formula(WeekOfYear(:date)),
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;All you need to do is to pull out the work week from the original :Date column.&amp;nbsp; Your formula for the "New Date" column was using a Format() function, which returns a character string.&amp;nbsp; But that issue can all be circumvented&amp;nbsp; with the above column definition.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 19:11:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Getting-work-week-WW-from-quot-m-d-y-h-m-s-AM-PM-quot-format/m-p/248115#M48698</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-02-18T19:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting work week (WW) from "m/d/y h:m:s AM|PM" format</title>
      <link>https://community.jmp.com/t5/Discussions/Getting-work-week-WW-from-quot-m-d-y-h-m-s-AM-PM-quot-format/m-p/248117#M48699</link>
      <description>This is great and funny! nowwhere in the manual mention about `Formula(Weekofyear)` syntax.</description>
      <pubDate>Tue, 18 Feb 2020 19:24:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Getting-work-week-WW-from-quot-m-d-y-h-m-s-AM-PM-quot-format/m-p/248117#M48699</guid>
      <dc:creator>joshua</dc:creator>
      <dc:date>2020-02-18T19:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Getting work week (WW) from "m/d/y h:m:s AM|PM" format</title>
      <link>https://community.jmp.com/t5/Discussions/Getting-work-week-WW-from-quot-m-d-y-h-m-s-AM-PM-quot-format/m-p/248123#M48703</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/17409"&gt;@joshua&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Here is a link to the page in the documentation with the &lt;A title="JMP Week Of Year function" href="https://www.jmp.com/support/help/en/15.1/#page/jmp/date-and-time-functions.shtml#ww3925903" target="_self"&gt;weekofyear&lt;/A&gt; function.&lt;/P&gt;
&lt;P&gt;cheers,&lt;/P&gt;
&lt;P&gt;Stan&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 20:53:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Getting-work-week-WW-from-quot-m-d-y-h-m-s-AM-PM-quot-format/m-p/248123#M48703</guid>
      <dc:creator>stan_koprowski</dc:creator>
      <dc:date>2020-02-18T20:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Getting work week (WW) from "m/d/y h:m:s AM|PM" format</title>
      <link>https://community.jmp.com/t5/Discussions/Getting-work-week-WW-from-quot-m-d-y-h-m-s-AM-PM-quot-format/m-p/721960#M90382</link>
      <description>&lt;P&gt;Just Open a new column in JMP and in the formula section find WEEK OF YEAR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Week Of Year(date).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that's it....hope it helps.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 05:51:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Getting-work-week-WW-from-quot-m-d-y-h-m-s-AM-PM-quot-format/m-p/721960#M90382</guid>
      <dc:creator>Teehee_Tharan</dc:creator>
      <dc:date>2024-02-05T05:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting work week (WW) from "m/d/y h:m:s AM|PM" format</title>
      <link>https://community.jmp.com/t5/Discussions/Getting-work-week-WW-from-quot-m-d-y-h-m-s-AM-PM-quot-format/m-p/722173#M90417</link>
      <description>&lt;P&gt;And for "some" countries it is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1707165015277.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60870i2D861E64D1B456D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1707165015277.png" alt="hogi_0-1707165015277.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;LI-MESSAGE title="Calculating WEEKOFYEAR() for weeks that start on a day other than Sunday or Monday" uid="49379" url="https://community.jmp.com/t5/Discussions/Calculating-WEEKOFYEAR-for-weeks-that-start-on-a-day-other-than/m-p/49379#U49379" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 20:31:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Getting-work-week-WW-from-quot-m-d-y-h-m-s-AM-PM-quot-format/m-p/722173#M90417</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-02-05T20:31:57Z</dc:date>
    </item>
  </channel>
</rss>

