Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

date in php


<?php
// prints something like: Wednesday the 15th
echo date('l 	he jS');
?>
gmdate() - Format a GMT/UTC date/time
idate() - Format a local time/date as integer
getdate() - Get date/time information
getlastmod() - Gets time of last page modification
mktime() - Get Unix timestamp for a date
strftime() - Format a local time/date according to locale settings
time() - Return current Unix timestamp
DateTimeImmutable::__construct() - Returns new DateTimeImmutable object
Predefined DateTime Constants
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #date #php
ADD COMMENT
Topic
Name
2+1 =