Set the content to an attribute, and change the attribute with script.

#some-id:after {
    content: attr(data-something);
}
document.getElementById('some-id').dataset.something = new Date();

POC: http://jsfiddle.net/moagrius/9vt04bch/