Viewing 1 replies (of 1 total)
  • Plugin Author donmik

    (@atallos)

    Hi,

    You can create filter using bxcft_show_field_value and display the year only instead of the date.

    Check my FAQ

    When you need the year, instead of returning:

    $value_to_return = date_i18n(get_option(‘date_format’) ,strtotime($value_to_return) );

    You can try something like this:

    $value_to_return = date_i18n(‘Y’, strtotime($value_to_return) );

    Maybe I need to update this answer on my FAQ…

Viewing 1 replies (of 1 total)
  • The topic ‘How can I retrieve the year from the birthdate to use it ?’ is closed to new replies.