Do you need a comma at the end of an insert? [duplicate]

I have read some documents and saw two versions:

We certify that Joe Doe, born on the 1st of January 2000, attended something.

We certify that Joe Doe, born on the 1st of January 2000 attended something.

Are both correct?


Solution 1:

We certify that Joe Doe, born on the 1st of January 2000, attended something. Correct

We certify that Joe Doe, born on the 1st of January 2000 attended something. Incorrect

The portion between the commas in the first example is information that can be omitted without changing the meaning of the sentence, and for that reason it needs the commas. Think dependent/independent clause relationship.