get_comment_date() WP 1.0
Retrieve the comment date of the current comment.
- Since 4.4.0 Added the ability for
$comment_ID
to also accept a WP_Comment object.
Is the basis for:
comment_date()
Works based on:
mysql2date()
Hooks in function
Return
String. The comment's date.
Usage
get_comment_date( $d, $comment_ID );
- $d(string)
- The format of the date.
Default: user's setting - $comment_ID(int/WP_Comment)
- WP_Comment or ID of the comment for which to get the date.
Default: current comment
Code of get comment date:
wp-includes/comment-template.php
VER 5.1
Related Functions
From tag: date time
- comment_date()
- comment_time()
- current_time()
- date_i18n()
- get_comment_time()
- get_date_from_gmt()
- get_gmt_from_date()
More from category: Comments Loop
- comment_author()
- comment_author_email()
- comment_author_link()
- comment_author_url()
- comment_author_url_link()
- comment_class()