JS Vérifiez si l'objet date n'est pas valide
const isValid = !Number.isNaN(new Date(timestamp).getTime())
florinrelea
const isValid = !Number.isNaN(new Date(timestamp).getTime())
const validDate = !isNaN(Date.parse('foo'))