How remove date and time from comments in WordPress

Solution:

First you need to add the following code in your theme’s functions.php file.

// Remove comment date

function wpb_remove_comment_date($date, $d, $comment) { 
    if ( !is_admin() ) {
        return;
    } else { 
        return $date;
    }
}
add_filter( 'get_comment_date', 'wpb_remove_comment_date', 10, 3);

// Remove comment time
function wpb_remove_comment_time($date, $d, $comment) { 
    if ( !is_admin() ) {
            return;
    } else { 
            return $date;
    }
}
add_filter( 'get_comment_time', 'wpb_remove_comment_time', 10, 3);

To remove words like at or posted on right-click to select Inspect from the browser menu.

.comment-time { 
display:none; 
}