SimplePie_Item::get_date

SummerySummery

Get the posting date/time for the item

Syntax

SimplePie_Item::get_date( string $date_format = 'j F Y, g:i a' )

DescriptionDescription

Uses <atom:published>, <atom:updated>, <atom:issued>, <atom:modified>, <pubDate> or <dc:date>

Note: obeys PHP’s timezone setting. To get a UTC date/time, use get_gmdate

ParametersParameters

$date_format

(string) (Optional) Supports any PHP date format from http://php.net/date (empty for the raw data)

Default value: 'j F Y, g:i a'

ReturnReturn

(int|string|null)

SourceSource

File: wp-includes/SimplePie/Item.php


			
Scroll to Top