code: public static String formatContentValueForDiffTable(
          CmsObject cms,
          CmsElementComparison comparison,
          String origValue) {
  
          String result = CmsStringUtil.substitute(CmsStringUtil.trimToSize(origValue, 60), "\n", "");
  
          // formatting DateTime
          if (comparison instanceof CmsXmlContentElementComparison) {
              if (((CmsXmlContentElementComparison)comparison).getType().equals(CmsXmlDateTimeValue.TYPE_NAME)) {
                  if (CmsStringUtil.isNotEmpty(result)) {
  
                      result = CmsDateUtil.getDateTime(
                          new Date(Long.parseLong(result)),
                          DateFormat.SHORT,
                          cms.getRequestContext().getLocale());
                  }
              }
          }
          return result;
      }
docs: Formats an xml content value string for display in the value comparison table.<p>
  
  @param cms the CMS context
  @param comparison the element comparison
  @param origValue the XML content value as a string
  
  @return the formatted string