<?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: Get month name so i can display it in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Get-month-name-so-i-can-display-it/m-p/770855#M95199</link>
    <description>&lt;P&gt;You could use Format Pattern&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1720450717624.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65941iED34F64D744968D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1720450717624.png" alt="jthi_0-1720450717624.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

opt1 = Format(Today(), "Format Pattern", "&amp;lt;Month&amp;gt;");
opt2 = Format(Today(), "Format Pattern", "&amp;lt;Mmm&amp;gt;");

show(opt1, opt2);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 08 Jul 2024 14:59:27 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-07-08T14:59:27Z</dc:date>
    <item>
      <title>Get month name so i can display it</title>
      <link>https://community.jmp.com/t5/Discussions/Get-month-name-so-i-can-display-it/m-p/770809#M95198</link>
      <description>&lt;P&gt;I'd like to retrieve the current month's name to display it in my results.&lt;BR /&gt;&lt;BR /&gt;I tried using this function but i get every time the current date in format dd/mm/yyyy&amp;nbsp; :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;current_month = Format(Today(), "Mon");

textbox_result &amp;lt;&amp;lt; Set Text(
        "ICT  NOK  %  for " || current_month || " is " || Char(Round(percent_nok_ict, 2)) || "%\!N" ||
        "FCT  NOK  %  for " || current_month || " is " || Char(Round(percent_nok_fct, 2)) || "%"
    );&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yass_0-1720450480071.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65940i710D5B5A867BDED8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Yass_0-1720450480071.png" alt="Yass_0-1720450480071.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 14:55:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-month-name-so-i-can-display-it/m-p/770809#M95198</guid>
      <dc:creator>Yass</dc:creator>
      <dc:date>2024-07-08T14:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get month name so i can display it</title>
      <link>https://community.jmp.com/t5/Discussions/Get-month-name-so-i-can-display-it/m-p/770855#M95199</link>
      <description>&lt;P&gt;You could use Format Pattern&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1720450717624.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65941iED34F64D744968D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1720450717624.png" alt="jthi_0-1720450717624.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

opt1 = Format(Today(), "Format Pattern", "&amp;lt;Month&amp;gt;");
opt2 = Format(Today(), "Format Pattern", "&amp;lt;Mmm&amp;gt;");

show(opt1, opt2);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jul 2024 14:59:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-month-name-so-i-can-display-it/m-p/770855#M95199</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-08T14:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get month name so i can display it</title>
      <link>https://community.jmp.com/t5/Discussions/Get-month-name-so-i-can-display-it/m-p/770910#M95201</link>
      <description>&lt;P&gt;That works perfectly, thank you !&lt;BR /&gt;I have a quick follow-up question. I successfully retrieved the month, but it's currently in French. Is there a function in JMP that can translate it to English ?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 15:11:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-month-name-so-i-can-display-it/m-p/770910#M95201</guid>
      <dc:creator>Yass</dc:creator>
      <dc:date>2024-07-08T15:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get month name so i can display it</title>
      <link>https://community.jmp.com/t5/Discussions/Get-month-name-so-i-can-display-it/m-p/770968#M95202</link>
      <description>&lt;P&gt;I'm not sure if &amp;lt;&amp;lt; Use Locale(0) would work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

opt1 = Format(Today(), "Format Pattern", "&amp;lt;Month&amp;gt;", &amp;lt;&amp;lt; Use Locale(0));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If not you could create conversion list and use that&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

months = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};

months[Month(Today())];&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jul 2024 15:25:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-month-name-so-i-can-display-it/m-p/770968#M95202</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-08T15:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Get month name so i can display it</title>
      <link>https://community.jmp.com/t5/Discussions/Get-month-name-so-i-can-display-it/m-p/771078#M95204</link>
      <description>&lt;P&gt;If you use the English version of JMP, a very nasty workaround:&lt;/P&gt;&lt;P&gt;"use JMP language ..."&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1720456171106.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65948iCC84B05D4412FDF9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1720456171106.png" alt="hogi_0-1720456171106.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;from the Preferences/Windows Settings.&lt;/P&gt;&lt;P&gt;It will interfere with dozens of other functions (csv import, date in data tables ....)&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 16:30:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-month-name-so-i-can-display-it/m-p/771078#M95204</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-07-08T16:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get month name so i can display it</title>
      <link>https://community.jmp.com/t5/Discussions/Get-month-name-so-i-can-display-it/m-p/771625#M95220</link>
      <description>&lt;P&gt;Thank you! Using Locale(0) worked perfectly.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 07:30:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-month-name-so-i-can-display-it/m-p/771625#M95220</guid>
      <dc:creator>Yass</dc:creator>
      <dc:date>2024-07-09T07:30:23Z</dc:date>
    </item>
  </channel>
</rss>

