Dates not showing seconds in Webclient/Webdrawer/ServiceAPI

checking the CM desktop data with the webclients, observation is date fields are not showing seconds in Webclient,Webdrawer and ServiceAPI. It showing upto only minutes.

Desktop Manager record dates

Webclient

Webdrawer.

How to show seconds also in the date field.

Thanks,

Sarath.

  • 0  

    For which particular CM Version?

    In 23.4, for the WebClient and the WebDrawer you can sometimes modify the underlying razor page to get around the issue. Can be a bit fiddly if you are not familiar with the razor code and depending on the bit that needs changing.

    Example record from my 23.4 DemoDB where DateRegisered has a seconds component.

    For WebDrawer, you can follow  webdrawer change DateCreated format in detailsview page 

    You can have it include the time component by changing it to "dd/MM/yyyy HH:mm:ss tt"  instead of "dd/MM/yyyy" in the ToString() spot.

    NB: Custom datetime format strings can be found at learn.microsoft.com/.../custom-date-and-time-format-strings

    The Web Client in 23.4 already looks to display the date with the seconds component.

    For the ServiceAPI, if dealing with a JSON payload, the Date is in ISO8601 format which should always includes seconds and milliseconds

    https://.../CMServiceAPI/Record?q=uri:352&properties=RecordNumber,DateRegistered&format=json

    For a broader fix to change how the date values present, I'd recommend logging a support call with OpenText.

    -Scotty

  • 0 in reply to   

    Thanks for your response scotty.

    we were using CM 9.4. tried using service api to see the data for a record. getting as below.

    i had updated the webdrawer code to display the date time in specific format , but it didn't helped.

    Thanks,

    Sarath.