<?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 Output todays date and replace with value from a table in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/output-todays-date-and-replace-with-value-from-a/m-p/1206143#M78437</link>
    <description>&lt;P&gt;I have created a web app in Experience Builder and would like to embed a widget that returns a value based on todays date.&lt;/P&gt;&lt;P&gt;I want the script to return the moon phase based on the current date. For example, todays date is 25/08/22 so I need the script to return the following:&lt;/P&gt;&lt;P&gt;1. Todays date&lt;/P&gt;&lt;P&gt;2. Moon phase/Maramataka&lt;/P&gt;&lt;P&gt;3. Decription of the moon phase&lt;/P&gt;&lt;P&gt;Please can someone show me the java script that's needed to return the values from the table?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table.JPG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49393i4A9F7420E2C6FC28/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Table.JPG" alt="Table.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Aug 2022 23:14:11 GMT</pubDate>
    <dc:creator>FrankHerbert</dc:creator>
    <dc:date>2022-08-24T23:14:11Z</dc:date>
    <item>
      <title>Output todays date and replace with value from a table</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/output-todays-date-and-replace-with-value-from-a/m-p/1206143#M78437</link>
      <description>&lt;P&gt;I have created a web app in Experience Builder and would like to embed a widget that returns a value based on todays date.&lt;/P&gt;&lt;P&gt;I want the script to return the moon phase based on the current date. For example, todays date is 25/08/22 so I need the script to return the following:&lt;/P&gt;&lt;P&gt;1. Todays date&lt;/P&gt;&lt;P&gt;2. Moon phase/Maramataka&lt;/P&gt;&lt;P&gt;3. Decription of the moon phase&lt;/P&gt;&lt;P&gt;Please can someone show me the java script that's needed to return the values from the table?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table.JPG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49393i4A9F7420E2C6FC28/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Table.JPG" alt="Table.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 23:14:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/output-todays-date-and-replace-with-value-from-a/m-p/1206143#M78437</guid>
      <dc:creator>FrankHerbert</dc:creator>
      <dc:date>2022-08-24T23:14:11Z</dc:date>
    </item>
  </channel>
</rss>

