<?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: format date in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/format-date/m-p/678010#M86439</link>
    <description>&lt;P&gt;merci pour vos réponses !&lt;/P&gt;</description>
    <pubDate>Fri, 15 Sep 2023 06:38:45 GMT</pubDate>
    <dc:creator>hcarr01</dc:creator>
    <dc:date>2023-09-15T06:38:45Z</dc:date>
    <item>
      <title>format date</title>
      <link>https://community.jmp.com/t5/Discussions/format-date/m-p/677801#M86416</link>
      <description>&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Je dispose d’une BD avec deux colonnes : entrée et sortie. &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;Ces colonnes sont des dates mais sont au mauvais format.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hcarr01_1-1694701647772.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56651i6B60D19273B9FA81/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hcarr01_1-1694701647772.png" alt="hcarr01_1-1694701647772.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT&gt;Par exemple la cellule 14,45 correspond à 14h45.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;J’ai essayé en modifiant le format de la colonne en disant qu’en entrée il s’agissait de format numérique et en sortie je voudrais «&amp;nbsp;h:m » comme ci dessous :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hcarr01_0-1694701578439.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56650i561CDFD641C368D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hcarr01_0-1694701578439.png" alt="hcarr01_0-1694701578439.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cela ne fonctionne pas, avez-vous une idée pour résoudre ce problème SVP ?&lt;/P&gt;&lt;P&gt;Merci pour vos réponses !&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 14:28:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/format-date/m-p/677801#M86416</guid>
      <dc:creator>hcarr01</dc:creator>
      <dc:date>2023-09-14T14:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: format date</title>
      <link>https://community.jmp.com/t5/Discussions/format-date/m-p/677816#M86419</link>
      <description>&lt;P&gt;The issue is that time in JMP is categorized as seconds. 14.45 is not in seconds, so you need to convert your numbers into seconds.&lt;/P&gt;
&lt;P&gt;There is likely a more economical way to do this formula, but this one shows exactly what is going on.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dan_Obermiller_0-1694704306809.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56653i75A14BEE0FB26A41/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dan_Obermiller_0-1694704306809.png" alt="Dan_Obermiller_0-1694704306809.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first part (before the + sign) takes the integer portion and converts to seconds. The second part will find the fraction of the entry, multiply by 100 to convert to an integer, divide by 60 to convert to a fraction of an hour. Then, the "In Hours" function will convert that to seconds.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 15:14:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/format-date/m-p/677816#M86419</guid>
      <dc:creator>Dan_Obermiller</dc:creator>
      <dc:date>2023-09-14T15:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: format date</title>
      <link>https://community.jmp.com/t5/Discussions/format-date/m-p/677863#M86425</link>
      <description>&lt;P&gt;To add to&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3194"&gt;@Dan_Obermiller&lt;/a&gt;&amp;nbsp;response, the below script will make the changes-in-place for the&amp;nbsp;entrée column;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();

For Each Row(
	:entrée = In Hours( Floor( :entrée ) )
	+In Hours(
		Modulo( :entrée, Floor( :entrée ) ) * (100
		 / 60)
	)
);
:entrée &amp;lt;&amp;lt; Format( "h:m" );&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-1694713320569.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56656iAC7ED4B7502AFD96/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1694713320569.png" alt="txnelson_0-1694713320569.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 17:42:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/format-date/m-p/677863#M86425</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-09-14T17:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: format date</title>
      <link>https://community.jmp.com/t5/Discussions/format-date/m-p/678010#M86439</link>
      <description>&lt;P&gt;merci pour vos réponses !&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 06:38:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/format-date/m-p/678010#M86439</guid>
      <dc:creator>hcarr01</dc:creator>
      <dc:date>2023-09-15T06:38:45Z</dc:date>
    </item>
  </channel>
</rss>

