User Tools

Site Tools


programming:php:date

php : date

date(string $format, ?int $timestamp = null): string official

ExampleExplanation / Remarks
$d = date() ?
$d = date(“y-m-d h:i:s”)returns a string of current UTC time: y=
format specifiers:
dday-of-month, two digits, leading zero

See also:
official php date page
official php datetime page

programming/php/date.txt · Last modified: 2022/06/06 06:09 by levor