Exception thrown

DateTime::__construct(): Failed to parse time string (2018-31-12) at position 6 (1): Unexpected character