# Construct XML to Update Dates

To use the `update` fetch action, you must construct some XML that specifies the identifiers of the files to update, and provides the new values for any metadata fields that you want to change:

    <identifiersXML>
      <identifier value="...">
        <metadata name="CREATED" value="1427302848"/>
        <metadata name="LASTMODIFIED" value="1427302848"/>
        <metadata name="LASTACCESSED" value="1427302848"/>
        <metadata name="LASTCHANGED" value="1427302848"/>
      </identifier>
    </identifiersXML>

In the identifier `value` attribute, replace "..." with the document identifier of the item that you want to update. A document identifier can be found in the `AUTN_IDENTIFIER` field of an indexed document.

You can update the metadata of several files by including more than one `identifier` element in your XML:

    <identifiersXML>
       <identifier value="...">
          <metadata name="CREATED" value="1427302848"/>
       </identifier>
       <identifier value="...">
          <metadata name="LASTMODIFIED" value="1427302848"/>
       </identifier>
    </identifiersXML>

You can set date/time values using the following formats:

- Epoch seconds (for example 1427302848)

- YYYY-SHORTMONTH-DD HH:NN:SS (for example 2015-MAR-25 17:01:30)

- YYYY-MM-DDTHH:NN:SS (for example 2015-03-25T17:01:30)

- YYYYMMDDTHHNNSS (for example 20150325T170130)

TIP: The connector passes the times to the operating system without any consideration of time zones.

NOTE: The connector updates any of the fields that you specify. If you do not set a value for one of the fields, the value is not updated. The last change time is not updated unless you explicitly set a value for that field, even though updating the other metadata fields would usually result in the last change time being updated to the current time.

© Copyright 2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm