Perhaps I am misunderstanding the example but isn't the date parsing result from the API documentation incorrect.
nlp.value("I married April for the 2nd time on June 5th 1998 ").date()
// [Date object] d.toLocaleString() -> "04/2/1998"
https://github.com/nlp-compromise/nlp_compromise/blob/master...