<?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 Last Modified date in yyyy-MM-dd format in Office documents in Windchill</title>
    <link>https://community.ptc.com/t5/Windchill/Last-Modified-date-in-yyyy-MM-dd-format-in-Office-documents/m-p/989674#M83361</link>
    <description>&lt;P&gt;Version: Windchill 13.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use Case: Display the Last Modified date in&amp;nbsp;yyyy-MM-dd format in Office documents&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Description: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m reaching out for advice on a challenge I’ve encountered while trying to display the &lt;EM&gt;Last Modified&lt;/EM&gt; date of a document in Office documents using the Office Worker. The issue lies in the fact that the &lt;EM&gt;Last Modified&lt;/EM&gt; attribute is of the &lt;EM&gt;Date &amp;amp; Time&lt;/EM&gt; type, meaning it includes both the date and the precise time. However, I only need the date (yyyy-MM-dd format) in the Office document.&lt;/P&gt;&lt;P&gt;Here’s what I’ve tried so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Successfully Displayed&amp;nbsp;&lt;EM&gt;Created On date&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;I managed to pass the &lt;EM&gt;Creation Date&lt;/EM&gt; to Office Worker by creating a custom alias attribute that referenced the &lt;EM&gt;WTDocumentMaster Created On&lt;/EM&gt;. I set this alias attribute to the &lt;EM&gt;Date only&lt;/EM&gt; type, and it worked perfectly.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Issues with the Last Modified Attribute&lt;/STRONG&gt;&lt;BR /&gt;When attempting the same approach for the &lt;EM&gt;Last Modified&lt;/EM&gt; attribute, I encountered several challenges:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The &lt;EM&gt;WTDocument&lt;/EM&gt; and &lt;EM&gt;WTDocumentMaster&lt;/EM&gt; have different &lt;EM&gt;Last Modified&lt;/EM&gt; attributes, and I cannot directly reference the &lt;EM&gt;WTDocument Last Modified&lt;/EM&gt; attribute with a custom alias because it already exists for that type.&lt;/LI&gt;&lt;LI&gt;Changing the &lt;EM&gt;Last Modified&lt;/EM&gt; attribute display format to yyyy-MM-dd on the Windchill UI did not solve the problem. (According to this topic: &lt;A href="https://community.ptc.com/t5/Windchill/Custom-Last-modified-attribute-that-shows-only-the-date/m-p/988511#M83289" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Custom Last modified attribute that shows only the date&lt;/SPAN&gt;&lt;/A&gt;) Although the date appeared correctly in the UI, Office Worker still retrieved the full &lt;EM&gt;Date &amp;amp; Time&lt;/EM&gt; value (including hours, minutes, and seconds) when adding it to the Office document. This behavior is expected since the underlying database format remained unchanged.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Attempted a Calculated String Attribute&lt;/STRONG&gt;&lt;BR /&gt;I also tried creating a custom &lt;EM&gt;String&lt;/EM&gt;-type calculated attribute that references the formatted &lt;EM&gt;Last Modified&lt;/EM&gt; attribute (yyyy-MM-dd). Unfortunately, this approach didn’t work either. Both the calculated attribute and the formatted &lt;EM&gt;Last Modified&lt;/EM&gt; attribute appeared in the yyyy-MM-dd HH:mm:ss &amp;lt;zone_id&amp;gt; format in the Office documents and also in the UI. When I removed the formula from the calculated attribute, the &lt;EM&gt;Last Modified attribute returned to customized display format (yyyy-MM-dd).&lt;/EM&gt;This feels like a potential bug.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Do you have any ideas how could I display the Last Modified date in&amp;nbsp;yyyy-MM-dd format in Office documents? Is it even possible without code customization? Any insights or suggestions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;BR /&gt;Richard&lt;/P&gt;</description>
    <pubDate>Wed, 18 Dec 2024 10:59:13 GMT</pubDate>
    <dc:creator>RL_9925624</dc:creator>
    <dc:date>2024-12-18T10:59:13Z</dc:date>
    <item>
      <title>Last Modified date in yyyy-MM-dd format in Office documents</title>
      <link>https://community.ptc.com/t5/Windchill/Last-Modified-date-in-yyyy-MM-dd-format-in-Office-documents/m-p/989674#M83361</link>
      <description>&lt;P&gt;Version: Windchill 13.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use Case: Display the Last Modified date in&amp;nbsp;yyyy-MM-dd format in Office documents&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Description: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m reaching out for advice on a challenge I’ve encountered while trying to display the &lt;EM&gt;Last Modified&lt;/EM&gt; date of a document in Office documents using the Office Worker. The issue lies in the fact that the &lt;EM&gt;Last Modified&lt;/EM&gt; attribute is of the &lt;EM&gt;Date &amp;amp; Time&lt;/EM&gt; type, meaning it includes both the date and the precise time. However, I only need the date (yyyy-MM-dd format) in the Office document.&lt;/P&gt;&lt;P&gt;Here’s what I’ve tried so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Successfully Displayed&amp;nbsp;&lt;EM&gt;Created On date&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;I managed to pass the &lt;EM&gt;Creation Date&lt;/EM&gt; to Office Worker by creating a custom alias attribute that referenced the &lt;EM&gt;WTDocumentMaster Created On&lt;/EM&gt;. I set this alias attribute to the &lt;EM&gt;Date only&lt;/EM&gt; type, and it worked perfectly.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Issues with the Last Modified Attribute&lt;/STRONG&gt;&lt;BR /&gt;When attempting the same approach for the &lt;EM&gt;Last Modified&lt;/EM&gt; attribute, I encountered several challenges:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The &lt;EM&gt;WTDocument&lt;/EM&gt; and &lt;EM&gt;WTDocumentMaster&lt;/EM&gt; have different &lt;EM&gt;Last Modified&lt;/EM&gt; attributes, and I cannot directly reference the &lt;EM&gt;WTDocument Last Modified&lt;/EM&gt; attribute with a custom alias because it already exists for that type.&lt;/LI&gt;&lt;LI&gt;Changing the &lt;EM&gt;Last Modified&lt;/EM&gt; attribute display format to yyyy-MM-dd on the Windchill UI did not solve the problem. (According to this topic: &lt;A href="https://community.ptc.com/t5/Windchill/Custom-Last-modified-attribute-that-shows-only-the-date/m-p/988511#M83289" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Custom Last modified attribute that shows only the date&lt;/SPAN&gt;&lt;/A&gt;) Although the date appeared correctly in the UI, Office Worker still retrieved the full &lt;EM&gt;Date &amp;amp; Time&lt;/EM&gt; value (including hours, minutes, and seconds) when adding it to the Office document. This behavior is expected since the underlying database format remained unchanged.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Attempted a Calculated String Attribute&lt;/STRONG&gt;&lt;BR /&gt;I also tried creating a custom &lt;EM&gt;String&lt;/EM&gt;-type calculated attribute that references the formatted &lt;EM&gt;Last Modified&lt;/EM&gt; attribute (yyyy-MM-dd). Unfortunately, this approach didn’t work either. Both the calculated attribute and the formatted &lt;EM&gt;Last Modified&lt;/EM&gt; attribute appeared in the yyyy-MM-dd HH:mm:ss &amp;lt;zone_id&amp;gt; format in the Office documents and also in the UI. When I removed the formula from the calculated attribute, the &lt;EM&gt;Last Modified attribute returned to customized display format (yyyy-MM-dd).&lt;/EM&gt;This feels like a potential bug.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Do you have any ideas how could I display the Last Modified date in&amp;nbsp;yyyy-MM-dd format in Office documents? Is it even possible without code customization? Any insights or suggestions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;BR /&gt;Richard&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 10:59:13 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Last-Modified-date-in-yyyy-MM-dd-format-in-Office-documents/m-p/989674#M83361</guid>
      <dc:creator>RL_9925624</dc:creator>
      <dc:date>2024-12-18T10:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Last Modified date in yyyy-MM-dd format in Office documents</title>
      <link>https://community.ptc.com/t5/Windchill/Last-Modified-date-in-yyyy-MM-dd-format-in-Office-documents/m-p/991597#M83483</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/443205"&gt;@RL_9925624&lt;/a&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you for your question.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Your post appears well documented but has not yet received any response. I am replying to raise awareness. Hopefully, another community member will be able to help.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, feel free to add any additional information you think might be relevant. It sometimes helps to have screenshots to better understand what you are trying to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 13:06:53 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Last-Modified-date-in-yyyy-MM-dd-format-in-Office-documents/m-p/991597#M83483</guid>
      <dc:creator>Catalina</dc:creator>
      <dc:date>2025-01-03T13:06:53Z</dc:date>
    </item>
  </channel>
</rss>

