i've the following code
The date format in the database is (yyyy.mm.dd) so I want to convert/format it to (dd.mm.yyyy)
This code is reading the date from the database
{
echo '<span class="badge badge-success" style="background-color:red;">Nicht Verfügbar</span> <p><i class="fas fa-info-circle" aria-hidden="true" style="color:Red;"></i> Vergeben bis :<span style="color:red;font-weight:600;">';
echo htmlentities($result->VerfuegbarAb);
echo '</span></p>';
}
My question, how I can get this into my code? I don't know how to add a time format into this code and yes this code looks like horrible and would be a better solution but i'm learning still php and i'm going trough everything to get better :) Hope someone can help me would be amazing. Thanks in advance