date_format = $date_format; } /** * Formats date for the presentation layer. * * @param int $timestamp Timestamp. * * @return string Formatted date. * @since 1.7.0 */ function getFormattedDate( $timestamp ) { return DateTimeFormatter::instance()->getFormattedDateTime( $timestamp, 'date' ); } }