Hello,
I am working on a project to index our collab content into a Google Search Appliance (GSA). The GSA Web crawls the site using a dedicated user account. I need to add some meta-data elements on each page to provide the GSA with the last modified date amongst other things. In common_metadata_details.shtml I have added the following:
<ISPECT>String gsa_date=getModifiedDate()</ISPECT>
<meta name="gsa_date" content="<ISPECT>showText(gsa_date)</ISPECT>"/>
This has the effect of adding the last mod date as meta-data on every page. However, the date is in the format: '11/25/11 1:22 PM' and I just want the date portion of this (ideally in the format yyyy.mm.dd). Can anyone advise what ISPECT function might be available to manipulate date, or how my goal can be achieved? I started down the road of using a Javascript but as this is client side I'm not sure thata values set will be picked up during a web-crawl so my preferred option is for the date to be manipulated server side.
Thanks in advance for any advice you might be able to offer.
Niall O'Grady
QAD Ireland.