Changing comment date format when looping $comments array
-
I’m using the
$comments
array to loop through each comment (simply because it gives me more flexibility than thewp_list_comments()
).So to echo the current time and date per comment I have to use this (as far as I know):
echo $comments[0]->comment_date;
How do I change the format of the time and date output. Currently is this 2009-05-14 21:44:46, and I want this Thursday 14th May, 2009, 9:44pm
('l jS F, Y, g:ia')
Would I have to change some hook(s) or core code?
Cheers
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Changing comment date format when looping $comments array’ is closed to new replies.