Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Funkcja do pobrania z liczby tylko daty bez z godzin

17 views
Skip to first unread message

Jakub

unread,
Nov 29, 2023, 8:27:12 AM11/29/23
to

Napisałem taką funkcję aby z liczby pobrać tylko datę bez godzin , minut
i sekund.

function dayWithoutTime($inputInteger) {
$date = date('Y/m/d', $inputInteger);
$clearDate = $date . ' 00:00:00';
return strtotime($clearDate);
}

$datainILong = 1701265967;

dayWithoutTime($datainILong);

Czy znacie jakąś inną funkcję aby zrobić coś podobnego?
0 new messages