WordPress.org

Codex

Function Reference/get comment date

Contents

Description

Retrieve the comment date of the current comment.

Usage

<?php get_comment_date$d$comment_ID ); ?>

Parameters

$d
(string) (optional) date() format description.
Default: get_option('date_format')
$comment_ID
(int) (optional) Valid comment id
Default: None


Returns

(String) 
Formatted comment date.

Examples

<?php 

$d = "d.m.Y H:i:s";
$comment_date = get_comment_date( $d, $comment_ID );
echo $comment_date;

?>

Uses

Calls 'get_comment_date' hook with the formatted date and the $d parameter respectively

Uses $comment

This page is marked as incomplete. You can help Codex by expanding it.