You appear to be a bot. Output may be restricted
Description
Theme a field of type 'date'e.g. date_i18n(get_option('date_format') ,strtotime("11/15-1976"));?>
Usage
bw_theme_field_date( $key, $value );
Parameters
- $key
- ( string ) required – the field name
- $value
- ( string ) required – the field value – expected to be in ccyy-mm-dd rather than a unix timestamp
Returns
voidSource
File name: oik-fields/includes/oik-fields.incLines:
1 to 11 of 11
function bw_theme_field_date( $key, $value ) { //if ( count( $value ) ) // e( bw_format_date( $value[0] ) ); $date = bw_array_get( $value, 0, $value ); if ( $date ) { $format = get_option( 'date_format' ); $date = strtotime( $date ); e( date_i18n( $format, $date ) ); //e( bw_format_date( ) ); } }View on GitHub