code: private Date parseDate(CmsXmlContentValueLocation dateLoc) {
  
          if (dateLoc == null) {
              return null;
          }
          String dateStr = dateLoc.getValue().getStringValue(m_cms);
          if (CmsStringUtil.isEmptyOrWhitespaceOnly(dateStr)) {
              return null;
          }
          try {
              return new Date(Long.parseLong(dateStr));
          } catch (Exception e) {
              LOG.info(e.getLocalizedMessage() + " date = " + dateStr, e);
              return null;
          }
      }
docs: Parses a date.<p>
  
  @param dateLoc the location of the date
  @return the date, or null if it could not be parsed