It is possible to know a cookie expiration date?

It is possible to know when a cookie expires? I have a function that gets a cookie:

function getCookie(cName) {
    const name = cName + "=";
    const cDecoded = decodeURIComponent(document.cookie);
    const cArr = cDecoded .split('; ');
    let res;
    cArr.forEach(val => {
        if (val.indexOf(name) === 0) res = val.substring(name.length);
    })
    return res;
}

But I need to know the expiration date also, not only the value.

Does someone know? I couldn’t find a solution.
Thanks