Date and Time in PHP - HD tutorial
Loading...
2,156
Loading...
Uploader Comments (MonsterProjectsMedia)
see all
All Comments (10)
-
@MonsterProjectsMedia Thanks for your response
-
@MonsterProjectsMedia OK thanks
-
@dashbyictfd Hello, sorry about the late reply. This should work for you:
date_default_timezone_set('Eur
ope/London'); -
Good tutorial but I am also looking at the best way to display the time in various timezones, maybe you could do a tutorial on that as my server is in the USA but I am in the UK.
Loading...
the file has been deleted please fix it
dust103194 5 months ago
@dust103194 Sorry about that. It shouldn't have been deleted but i have now included a new link in the video description for you.
MonsterProjectsMedia 5 months ago
How do you go about taking a date from a MySQL database in the format 2010-06-01 and turn it into 01-06-2010
dashbyictfd 1 year ago
@dashbyictfd Thats quite easy:
$Date = date("d - m - Y", strtotime($row["date"]));
Hope this is what you wanted.
MonsterProjectsMedia 1 year ago
@MonsterProjectsMedia Thanks again
dashbyictfd 1 year ago
@dashbyictfd No problem.
MonsterProjectsMedia 1 year ago