Add stats date

Same function here. Is it possible to extract it in a js or it's too much work for nothing