SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot xiaawan's Avatar
    Join Date
    Sep 2007
    Location
    Islamabad, Pakistan
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Converting DateTime Formate

    Hi All can anyone help me how can we convert mysql datetime formate (2007-09-18 10:57:00) to this one "September 18, 2007". Any idea?
    Thanks in advance.
    Zia Awan

  2. #2
    SitePoint Wizard silver trophy kyberfabrikken's Avatar
    Join Date
    Jun 2004
    Location
    Copenhagen, Denmark
    Posts
    6,157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    SitePoint Zealot xiaawan's Avatar
    Join Date
    Sep 2007
    Location
    Islamabad, Pakistan
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much for your reply, I got what I needed so I am using the following and it works fine.

    Code PHP:
    echo date("F j, Y",strtotime("2007-09-25"));

    Again thank you very much, see u in any other post, have a nice time
    Zia Awan

  4. #4
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you need to take care of locale information then use strftime function.
    Cheers!
    Sumit


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •