Français
  • PHP Tutorial - 20 - date function


    Added on Sunday 20 July 2008 16:08:22
    by thenewboston
    43378 Views
    4.9 / 5
    12345
    118 rates
    Send this video to your friends
    Get embed code of video

    Subscribe to my Channel if you like my tutorials!

    Go to my website http://thenewboston.com/ if you need any help or have any questions. I will answer them all there!



    facebook
  • Write your comment here...
  • sputtnikk11

    php.net/manual/en/function.date.php
    Thursday 26 January 2012 15:15:07
  • TheGhostMX

    I want my 2:29 min back ! ... ffs
    Tuesday 24 January 2012 16:21:28
  • seko5

    @Diifusal You can do that in javascript. Check out there's plenty of tutorials for it
    Sunday 10 July 2011 05:36:17
  • bleechish

    awsome basics~ 
    Monday 27 June 2011 20:40:31
  • rhowmil12

    tnx!!!keep up the good work
    Sunday 12 June 2011 22:50:10
  • intimidate2161

    It's 2011 now ;-) Great video!
    Tuesday 24 May 2011 19:59:26
  • KADAMASOUL

    i added this as a variable for the tutorial I laughed xD $insult = ($fag=" your a faggot"); echo $_POST["name"].$fag;
    Thursday 28 April 2011 15:09:51
  • 12345678910secret

    THAT IS SO COOL!
    Tuesday 22 February 2011 19:54:38
  • knet1992

    @luluta86 If your still looking for help you should check out the website of thenewboston. He'll answer every question there
    Monday 07 February 2011 03:42:13
  • Diifusal

    Date: D - displays the day of the week. ex: Mon d - displays the number of the day. ex: 02 M - displays the month abreviation. ex: Jan m - displays the number of the month. ex: 01 Y - displays the year. ex: 2011 y - displays the two last numbers of the year. ex: 11 Time: H - displays the hours in a 24 hours clock. ex: 23 h - displays the hours in a 12 hours clock. ex: 11 I - nothing to quote. i - displays the minutes. S - nothing to quote. s - displays the seconds.
    Sunday 02 January 2011 16:26:24
  • Diifusal

    ok, i got it working, but the clock is freezed of course.. is there any way to do something like being always refreshing the page so the seconds are always correct and flowing?
    Sunday 02 January 2011 12:21:05
  • Diifusal

    why i is for minutes? shouldn't it be m? or is this one of the things that has nothing to do to what you're doing, like echo instead of display?
    Sunday 02 January 2011 12:14:01
  • FlyingBroMan

    you certainly know a thing or two about teaching and flow ;)
    Wednesday 01 December 2010 20:21:40
  • darkpower901

    it's works bur i also get a error can some one help plz? Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in C:\xampp\htdocs\test2.php on line 3 13.10.2010
    Wednesday 13 October 2010 08:40:53
  • EnvyMyPower

    1 person seemed to have missed their birthday... and they found out using the date function ;)
    Wednesday 01 September 2010 09:09:10
  • luluta86

    I'd like to learn PHP but it is pretty hard for me. I need help. PLS. If there is someone able to help write me a privet message.
    Friday 06 August 2010 10:39:00
  • xbugster

    please edit, PHP 5.3.x and up yous hauld first set default time zone otherwise you will get warnings. default_timezone_set()
    Saturday 19 June 2010 14:14:17
  • mangoprojects

    A 02:28 tutorial?? I enjoyed the two part 5 minute tutorial. It was more in-depth and useful. Thank you. - behind vfx
    Friday 11 June 2010 19:27:33
  • OtherMehdi

    The best tutorial ever...
    Friday 21 May 2010 07:50:38
  • OneGamblor

    @ambrosia219 Yes can you please expand on the GET function in another tutorial.
    Thursday 06 May 2010 11:18:42
  • frede9090

    how to make time zones on date("H:i:s"); ???
    Tuesday 06 April 2010 08:02:40
  • seko5

    date("d.m.Y - H:i:s"); H is hours i is minutes s is seconds
    Wednesday 03 February 2010 09:06:55
  • SleeperBirdLS1

    If you use capital D and M you get the day and month instead of numbers. So if you wanted "Fri, Dec-18-2009" you would use date("D, M-d-Y");
    Friday 18 December 2009 05:35:32
  • TheRezaali

    realy nice tut man put some function i dint understand
    Wednesday 23 September 2009 06:16:19
  • BackRaw

    it's not that hard, google it =)
    Friday 11 September 2009 12:24:02
ADVERTISEMENT
Supplements
Social Network
Tag cloud