bp_core_date_format( bool $time = false, bool $date = true, string $symbol = ' @ ' )

Return the Default date format

Description

Parameters

$date

(Optional)

Default value: true

$time

(Optional)

Default value: false

$symbol

(Optional)

Default value: ' @ '

Return

(mixed)

Source

File: bp-core/bp-core-functions.php

function bp_core_date_format( $time = false, $date = true, $symbol = ' @ ' ) {

	$format = $date ? get_option( 'date_format' ) : '';

	if ( $time ) {
		$format .= empty( $format ) ? get_option( 'time_format' ) : $symbol . get_option( 'time_format' );
	}
	return $format;
}

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.