created function in comment_helper to format date output