<?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: How to get the created date and Updated date of a map in portal using ArcGIS API python in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-get-the-created-date-and-updated-date-of-a/m-p/1125633#M6900</link>
    <description>&lt;P&gt;This should work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;from arcgis.gis import GIS
from datetime import datetime
gis = GIS(profile='simon')

# Find all the web maps
all_maps = gis.content.search(query="*", item_type="Web Map", max_items = 9999)

# Return the date created + modified
for m in all_maps:
    m_created_time = datetime.fromtimestamp(round(m.created / 1000))
    m_modified_time = datetime.fromtimestamp(round(m.modified / 1000))
    print(m.title + ", Created: " + str(m_created_time) + ", Modified: "+ str(m_modified_time))&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 13 Dec 2021 23:26:51 GMT</pubDate>
    <dc:creator>SimonGIS</dc:creator>
    <dc:date>2021-12-13T23:26:51Z</dc:date>
    <item>
      <title>How to get the created date and Updated date of a map in portal using ArcGIS API python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-get-the-created-date-and-updated-date-of-a/m-p/1125337#M6898</link>
      <description>&lt;P&gt;I am trying to get the created date and the last updated date of all the Maps in my portal, is there any function to get both the dates using ArcGIS API python. Kindly direct me. Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 09:25:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-get-the-created-date-and-updated-date-of-a/m-p/1125337#M6898</guid>
      <dc:creator>Aravinthkumar</dc:creator>
      <dc:date>2021-12-13T09:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the created date and Updated date of a map in portal using ArcGIS API python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-get-the-created-date-and-updated-date-of-a/m-p/1125633#M6900</link>
      <description>&lt;P&gt;This should work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;from arcgis.gis import GIS
from datetime import datetime
gis = GIS(profile='simon')

# Find all the web maps
all_maps = gis.content.search(query="*", item_type="Web Map", max_items = 9999)

# Return the date created + modified
for m in all_maps:
    m_created_time = datetime.fromtimestamp(round(m.created / 1000))
    m_modified_time = datetime.fromtimestamp(round(m.modified / 1000))
    print(m.title + ", Created: " + str(m_created_time) + ", Modified: "+ str(m_modified_time))&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 Dec 2021 23:26:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-get-the-created-date-and-updated-date-of-a/m-p/1125633#M6900</guid>
      <dc:creator>SimonGIS</dc:creator>
      <dc:date>2021-12-13T23:26:51Z</dc:date>
    </item>
  </channel>
</rss>

