<?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: Converting hours to days, hours, minutes in Adobe Experience Manager Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/converting-hours-to-days-hours-minutes/m-p/540903#M134314</link>
    <description>&lt;P&gt;Could someone help with displaying the duration between two different dates and times in hours, and days and hours, if possible? I've reviewed almost every post related to this subject in the forums and tried virtually every recommendation out there, but I can't figure it out. Here's the form if anyone can assist. &lt;A title="Date and time duration" href="https://scottclaire.files.wordpress.com/2022/08/duration.pdf" target="_blank" rel="noopener"&gt;Date and time duration.&lt;/A&gt;&amp;nbsp;Thank you in advance.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Aug 2022 15:12:42 GMT</pubDate>
    <dc:creator>Daniel_Claire</dc:creator>
    <dc:date>2022-08-15T15:12:42Z</dc:date>
    <item>
      <title>Converting hours to days, hours, minutes</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/converting-hours-to-days-hours-minutes/m-p/354220#M25131</link>
      <description>&lt;P&gt;Probably a simple script for some of you veterans, but as a rookie, I’m stumped. Could someone help with converting hours to days, hours and minutes (e.g., 619 hours = xx days, xx hours and xx minutes)? FormCalc or Javascript. Thanx in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 01:17:16 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/converting-hours-to-days-hours-minutes/m-p/354220#M25131</guid>
      <dc:creator>Daniel_Claire</dc:creator>
      <dc:date>2020-02-19T01:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Converting hours to days, hours, minutes</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/converting-hours-to-days-hours-minutes/m-p/354237#M25132</link>
      <description>&lt;P&gt;&lt;LI-USER uid="9195112"&gt;&lt;/LI-USER&gt;&amp;nbsp;If I am correct... You can try with following js code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var days = Math.floor(providedHrs/24);
var remainder = providedHrs % 24;
var hrs = Math.floor(remainder);
var min = Math.floor(60*(remainder-hrs));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this will help you to solve your query...&lt;img class="lia-deferred-image lia-image-emoji" src="https://experienceleaguecommunities.adobe.com/html/@6FE30242136F1A50ACEEC878CD927A61/emoticons/1f600.png" alt=":grinning_face:" title=":grinning_face:" /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 07:13:27 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/converting-hours-to-days-hours-minutes/m-p/354237#M25132</guid>
      <dc:creator>Suraj_Kamdi</dc:creator>
      <dc:date>2020-02-19T07:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Converting hours to days, hours, minutes</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/converting-hours-to-days-hours-minutes/m-p/354253#M25133</link>
      <description>&lt;P&gt;Adding to above answer just make sure you have proper checks for day, hrs and min&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/49844323/javascript-convert-hours-and-minutes-into-days/49844499" target="_blank"&gt;https://stackoverflow.com/questions/49844323/javascript-convert-hours-and-minutes-into-days/49844499&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 10:45:49 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/converting-hours-to-days-hours-minutes/m-p/354253#M25133</guid>
      <dc:creator>arunpatidar</dc:creator>
      <dc:date>2020-02-19T10:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Converting hours to days, hours, minutes</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/converting-hours-to-days-hours-minutes/m-p/354475#M25134</link>
      <description>&lt;P&gt;I know its a slight overkill and may not support your exact requirement, but AEM has an OOTB library that can help you with any date conversion. - moment.js&lt;/P&gt;&lt;P&gt;Moment JS can be found at [1], category name 'moment'&lt;/P&gt;&lt;P&gt;You can use various conversions as mentioned in [2]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1] -&amp;nbsp;/libs/clientlibs/granite/moment&amp;nbsp;&lt;/P&gt;&lt;P&gt;[2] -&amp;nbsp;&lt;A href="https://momentjs.com/docs/#/get-set/minute/" target="_blank"&gt;https://momentjs.com/docs/#/get-set/minute/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 22:31:16 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/converting-hours-to-days-hours-minutes/m-p/354475#M25134</guid>
      <dc:creator>Nirmal_Jose</dc:creator>
      <dc:date>2020-02-20T22:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Converting hours to days, hours, minutes</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/converting-hours-to-days-hours-minutes/m-p/540903#M134314</link>
      <description>&lt;P&gt;Could someone help with displaying the duration between two different dates and times in hours, and days and hours, if possible? I've reviewed almost every post related to this subject in the forums and tried virtually every recommendation out there, but I can't figure it out. Here's the form if anyone can assist. &lt;A title="Date and time duration" href="https://scottclaire.files.wordpress.com/2022/08/duration.pdf" target="_blank" rel="noopener"&gt;Date and time duration.&lt;/A&gt;&amp;nbsp;Thank you in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 15:12:42 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/converting-hours-to-days-hours-minutes/m-p/540903#M134314</guid>
      <dc:creator>Daniel_Claire</dc:creator>
      <dc:date>2022-08-15T15:12:42Z</dc:date>
    </item>
  </channel>
</rss>

