Date and Time in PHP - HD tutorial

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,156
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 19, 2009

This tutorial will teach you how to add the date and time into your PHP page. I will show you 2 different date formats and 2 different time formats.

Download: http://files.monsterprojects.org/date_time_formats.zip
This file contains most php date and time formats!

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (MonsterProjectsMedia)

  • the file has been deleted please fix it

  • @dust103194 Sorry about that. It shouldn't have been deleted but i have now included a new link in the video description for you.

  • 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 Thats quite easy:

    $Date = date("d - m - Y", strtotime($row["date"]));

    Hope this is what you wanted.

  • @MonsterProjectsMedia Thanks again

  • @dashbyictfd No problem.

see all

All Comments (10)

Sign In or Sign Up now to post a comment!
  • @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...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more