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

1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
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

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.