Forum Stats

  • 3,875,722 Users
  • 2,266,954 Discussions
  • 7,912,318 Comments

Discussions

Created date of the content item in webcenter portal

User_QUFP4
User_QUFP4 Member Posts: 176 Red Ribbon
edited Apr 25, 2018 1:44PM in WebCenter Portal

Hello,

Can you please let me know what should be the EL for getting the Content item created date (Just date without timestamp) ?

I am trying to use - node.propertyMap['dInDate'].value - by which I'm getting like this : Apr 24, 2018 4:11:00 PM

Is there anyway I can get like just Apr 28, 2018. Please advise.

Thanks as always!

Best Answer

  • Dinil Mithra
    Dinil Mithra Member Posts: 351 Bronze Badge
    edited Apr 25, 2018 1:25PM Answer ✓

    Please try below code. I haven't tested this, so let me know if it is working..

    <af:outputText id="dInDate" value="#{node.propertyMap['dInDate'].value.calendarValue}">

    <af:convertDateTime pattern="MMMM dd, yyyy"/>

    </af:outputText>

    Kind Regards,

    DM

    User_QUFP4

Answers

This discussion has been closed.