Way to remove the timestamp from the metadata field for expiry date | Community
Skip to main content
Level 4
November 20, 2024

Way to remove the timestamp from the metadata field for expiry date

  • November 20, 2024
  • 1 reply
  • 1533 views

Hi,

 

I looking for a solution to remove the timestamp from the metadata schema for licence expiry date field. Currently it is showing like below. we want to see only the date not the timestamp and all. Please let me know if anyone knows the solution.

 

 

 

Thanks in advance!

 

 

 

Regards,

Bhavani bharanidharan

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

PRATHYUSHA_VP
Community Advisor
Community Advisor
November 20, 2024

Hi @bhavanibharani 

 

In order to edit/add properties, please navigate to metadata schema editor in AEM and make necessary changes

 

This is OOTB metadata scheme editor, please check below article for detailed approach to follow 

 

 

 

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/assets/manage/metadata-schemas

 

Hope this helps

 

Thanks

Level 4
November 20, 2024

Hi @prathyusha_vp ,

 

We have content hub enable for our aem assets, where we can able to use the filter to search the assets using the license expiry field, there we are actually seeing the date with some timestamp(min, hours,..). So as checking in AEM repository browser the value is getting stored as prism:expirationDate -> 2029-07-31T13:33:00+10:00 like this. So in content hub also we are getting the value with timestamp(as mentioned in the screenshot). We don't want to see the timestamp in content hub, as the values are getting pulled from the aem, looking for a way to trim those timestamp value while storing the value in the aem node.

 

Hope this gives some more clearance to my previous question!

 

 

Thanks again!

 

PRATHYUSHA_VP
Community Advisor
Community Advisor
November 20, 2024

Hi,

 

Yes indeed i get it what you're looking for, i have gone through the default metadata schema, it uses default OOTB datepicker which contains timestamp by default. 

 

Whereas in content fragment editor, we get to choose to display date / time.

 

In asset metadata schema editor, datepicker contains timestamp

 

 

For your scenario, customization is needed 

 

Thanks