Loading ...
Sorry, an error occurred while loading the content.

Re: [phpXperts] Converting date format

Expand Messages
  • Tariq mahmood
    By using date() and strtotime() functions you can format your date.     $d1 = date( Y:m:d H:m:s );                echo $dl1.     echo
    Message 1 of 8 , Jun 29, 2009
    • 0 Attachment
      By using date() and strtotime() functions you can format your date.

          $d1 = date("Y:m:d H:m:s");           
          echo $dl1.
          echo "<br />";

          echo date("d:m:Y", strtotime($d1));

      Regards,
      Tariq Mahmood
      www.tariqit.com

      --- On Sun, 6/28/09, shanto sas <saeedmail@...> wrote:

      From: shanto sas <saeedmail@...>
      Subject: Re: [phpXperts] Converting date format
      To: phpexperts@yahoogroups.com
      Date: Sunday, June 28, 2009, 9:16 AM

      http://www.php. net/manual/ en/function. date.php

      check this. there you find many way to represent date and time.

      regard,
      saeed

      --- On Sun, 28/6/09, Ashraf Jahan <adil_177@yahoo. com> wrote:

      From: Ashraf Jahan <adil_177@yahoo. com>
      Subject: Re: [phpXperts] Converting date format
      To: phpexperts@yahoogro ups..com
      Cc: ruzdibd@gmail. com
      Date: Sunday, 28 June, 2009, 2:34 PM

      Dear Ruzdi,

      You can do it following method :

      date("d:m:Y" );


      Thank's,

      Md. Ashraf Jahan (Adil)
      Web Developer
      +88-01819871783



      --- On Sat, 6/27/09, Md. Ruzdi Islam <ruzdibd@gmail. com> wrote:

      From: Md. Ruzdi Islam <ruzdibd@gmail. com>
      Subject: [phpXperts] Converting date format
      To: phpexperts@yahoogro ups.com
      Date: Saturday, June 27, 2009, 5:27 PM

      How can i convert a date format of YYYY-MM-DD HH:MM:SS      to        DD:MM:YYYY in php.


      Thanks
      Ruzdi



      New Email addresses available on Yahoo!
      Get the Email name you've always wanted on the new @ymail and @rocketmail.
      Hurry before someone else does!


    Your message has been successfully submitted and would be delivered to recipients shortly.