Help to year ,month and Day code!, .

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help to year ,month and Day code!, .

    Hi guys can anyone post the code of year,month and day here.?. the format is looks like this . .

    Saturday 18 - June - 2011


    #2
    PHP Code:
    echo date("l d - F - Y"); 
    » PornZeriEs.com - | New! Hottest Porn Movies

    Comment


      #3
      hmmmmmmmm?

      Comment


        #4
        Originally posted by youdi3 View Post
        Hi guys can anyone post the code of year,month and day here.?. the format is looks like this . .

        Saturday 18 - June - 2011

        you can never learn anything in php if small things like these elude you, go and freaking read and stop being lazy :-/

        Comment


          #5
          i,m newbie in php. .so that i ask if what the code i try 2 find here but ididnt see so dnt say lazy. .i know u are the good coder so all know the simple thing like this .


          so that i ask bEcouse i dont know . . .i never ask if i know what the answer dud

          Comment


            #6
            use this one ...

            Code:
            $time=date("l, d F Y -h:i:s a");
            echo "$time";
            Output will be > Saturday, 18 June 2011 - 05:00:16 pm
            Last edited by Guest; 18.06.11, 11:07.

            Comment


              #7
              Originally posted by youdi3 View Post
              i,m newbie in php. .so that i ask if what the code i try 2 find here but ididnt see so dnt say lazy. .i know u are the good coder so all know the simple thing like this .


              so that i ask bEcouse i dont know . . .i never ask if i know what the answer dud
              fair enough but truthfully newbie or not, php has a documentation with waaay more info than you can get here at http://php.net all you have to do is read it. They have it in many languages too u shud try it, challenge urself.

              Comment


                #8
                ok tnx jgutz / FrOsT-BiTe and also tnx CreativityKills . .this tread is done
                Last edited by youdi3; 19.06.11, 02:12.

                Comment


                  #9
                  Ok here something else I'm trieng in my guestbook. I guess it showimg server time but I want my own time.

                  $datum = gmdate("l,d M Y");
                  $zeit = gmdate("H:i:s A",time()+(25200));

                  Should I change the (25200) or leave that be,,, I tried editing it with a wappychat config file for the time as I'm used to edit the server time with my wappychat to my local time but it gave me errors when I did???
                  My site: http://mimobifunclub.tk
                  sigpic

                  Comment


                    #10
                    What is ur country?
                    » PornZeriEs.com - | New! Hottest Porn Movies

                    Comment


                      #11
                      I live in South Africa
                      My site: http://mimobifunclub.tk
                      sigpic

                      Comment


                        #12
                        PHP Code:
                        date_default_timezone_set'Africa/Johannesburg' );
                        date'l, d M Y - g:ia' );

                        // OR
                        $tz = new DateTimeZone('Africa/Johannesburg');
                        $date = new DateTime($tz);
                        echo 
                        $date->format'l, d M Y - g:ia' ); 
                        read read read read

                        Comment


                          #13
                          Cool thx creativity...I will try it both.
                          My site: http://mimobifunclub.tk
                          sigpic

                          Comment

                          Working...
                          X