code: private static CmsDateResourceComparator create(CmsObject cms, CmsResource resource, List<String> dateIdentifiers) {
  
          CmsDateResourceComparator result = new CmsDateResourceComparator();
          result.m_date = calculateDate(cms, resource, dateIdentifiers, resource.getDateCreated());
          return result;
      }
docs: Creates a new instance of this comparator key.<p>
  
  @param cms the current OpenCms user context
  @param resource the resource to create the key for
  @param dateIdentifiers the date identifiers to use for selecting the date
  
  @return a new instance of this comparator key