Support

Account

Forum Replies Created

  • found an answer:

    In the Settings:
    last choice, where you can decide your own format:

    l,d.m

    if(get_field(‘MY-FIELD-NAME’)):
    {
    $myString = get_field(‘MY-FIELD-NAME’);
    $myArray = explode(‘,’, $myString);

    echo ‘<p class=”date_weekday”>’ . $myArray[0] . ‘</p>’;
    echo ‘<p class=”date_date”>’ . $myArray[1] . ‘</p>’;
    }
    endif;

    l = weekday -> first array ([0])
    d.m = day and Month -> second array ([1])

Viewing 1 post (of 1 total)