Page last modified 14:25, 15 Feb 2017 by juhako


    Table of contents

    Description of the method


    Description: isValidDate method checks that the given string is a valid date. It takes the expected date format as a parameter. Date format is defined with Java SimpleDateFormat syntax (
    Available for: string
    Parameters: -
    Return type: boolean



    Context: HeaderType1
    OCL: self.dateTimeString.isValidDate("yyyy-MM-dd'T'HH:mm:ss.SSSXXX")
    Description: The example rule checks that the value in dateString field is valid ISO 8601 datetime.