<?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: Determine Week of Year and Day of Week Based on Year, Date and Time in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Determine-Week-of-Year-and-Day-of-Week-Based-on-Year-Date-and/m-p/421213#M67004</link>
    <description>Jim. Thank you.</description>
    <pubDate>Mon, 27 Sep 2021 04:58:05 GMT</pubDate>
    <dc:creator>bzanos</dc:creator>
    <dc:date>2021-09-27T04:58:05Z</dc:date>
    <item>
      <title>Determine Week of Year and Day of Week Based on Year, Date and Time</title>
      <link>https://community.jmp.com/t5/Discussions/Determine-Week-of-Year-and-Day-of-Week-Based-on-Year-Date-and/m-p/421115#M66989</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My company uses a fiscal calendar where one year has only 52 work week(WW). The weeks start on Saturdays, time 19:00&amp;nbsp; (hh:mm).&amp;nbsp;The day of week (DOW) is determined based on the time 19:00.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am trying to determine it by using &lt;STRONG&gt;Week Of Year()&lt;/STRONG&gt; and &lt;STRONG&gt;Date of Week()&lt;/STRONG&gt; functions but I do not get the desired&amp;nbsp;outcome.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Has anyone created JSL script to determine the week of year and date of week based on year, date and time?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With example below format (dd/mm/yyy hh:mm).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;26/12/2020 18:55 (Saturdays)&amp;nbsp; &amp;nbsp;----&amp;gt;Year =2020, WW= 52, DOW=7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;26/12/2020 19:00 (Saturdays)&amp;nbsp; ----&amp;gt; Year = 2021, WW= 01, DOW=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;27/12/2020 18:50 (Sunday)&amp;nbsp; ----&amp;gt; Year = 2021, WW= 01, DOW=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;27/12/2020 19:10 (Sunday)&amp;nbsp; ----&amp;gt; Year = 2021, WW= 01, DOW=2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;02/01/2021 18:59 (Saturdays)&amp;nbsp; ----&amp;gt; Year = 2021, WW= 01, DOW=7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;02/01/2021 19:00 (Saturdays)&amp;nbsp; ----&amp;gt; Year = 2021, WW= 02, DOW=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;25/12/2021 18:55 (Saturdays)&amp;nbsp; &amp;nbsp;----&amp;gt;Year =2021, WW= 52, DOW=7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;25/12/2021 19:00 (Saturdays)&amp;nbsp; ----&amp;gt; Year = 2022, WW= 01, DOW=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;26/12/2021 18:55 (Sunday)&amp;nbsp; &amp;nbsp;----&amp;gt;Year =2022, WW= 01, DOW=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;26/12/2021 19:00 (Sunday)&amp;nbsp; ----&amp;gt; Year = 2022, WW= 01, DOW=2&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:57:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Determine-Week-of-Year-and-Day-of-Week-Based-on-Year-Date-and/m-p/421115#M66989</guid>
      <dc:creator>bzanos</dc:creator>
      <dc:date>2023-06-09T19:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Determine Week of Year and Day of Week Based on Year, Date and Time</title>
      <link>https://community.jmp.com/t5/Discussions/Determine-Week-of-Year-and-Day-of-Week-Based-on-Year-Date-and/m-p/421135#M66990</link>
      <description>&lt;P&gt;You should be able to get what you want by simply adding 5 hours to the Date and Time column.&amp;nbsp; Here is a formula to calculate the day of the week&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Day Of Week( :Date and Time + In Hours( 5 ) )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1632669821432.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36072iB9121FDECEBBCC74/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1632669821432.png" alt="txnelson_0-1632669821432.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Sep 2021 15:23:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Determine-Week-of-Year-and-Day-of-Week-Based-on-Year-Date-and/m-p/421135#M66990</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-09-26T15:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Determine Week of Year and Day of Week Based on Year, Date and Time</title>
      <link>https://community.jmp.com/t5/Discussions/Determine-Week-of-Year-and-Day-of-Week-Based-on-Year-Date-and/m-p/421213#M67004</link>
      <description>Jim. Thank you.</description>
      <pubDate>Mon, 27 Sep 2021 04:58:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Determine-Week-of-Year-and-Day-of-Week-Based-on-Year-Date-and/m-p/421213#M67004</guid>
      <dc:creator>bzanos</dc:creator>
      <dc:date>2021-09-27T04:58:05Z</dc:date>
    </item>
  </channel>
</rss>

