bp_core_get_format_date( $date = '', $format = '' )
Return formatted date from a date string.
Description
Parameters
-
(Required) String of format of date.
Return
(string)
Source
File: bp-core/bp-core-functions.php
function bp_core_get_format_date( $date = '', $format = '' ) {
if ( ! $date ) {
return '';
}
if ( empty( $format ) ) {
$format = get_option( 'date_format' );
}
return date_i18n( $format, strtotime( $date ) );
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.