get_comment_date
get_comment_date ( $format = '', $comment_id = 0 )
Parameters:- (string) format Optional. PHP date format. Defaults to the 'date_format' option.
- (int|WP_Comment) comment_id Optional. WP_Comment or ID of the comment for which to get the date. Default current comment.
Returns:- (string) The comment's date.
Defined at:Change Log: - Introduced in WordPress: 1.5.0
- Deprecated in WordPress: —
Description
Retrieves the comment date of the current comment.