SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Oct 2007
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Where to translate Month and Day language, in PHP? I cant found options for this

    I can showing month and day in php, from this documentation http://php.net/manual/en/function.date.php

    for example

    Code:
    Wednesday, 03 March 2012


    i want to change it into my language

    Code:
    Rabu, 03 Maret 2012

    or it is best if can like this

    Code:
    Rabu, 3 Maret 2012



    i am using whm and cpanel, cant found options to translate this, maybe i need to edit some files in PHP configuration, but which one, please help guys
    Make the world better

  2. #2
    SitePoint Enthusiast
    Join Date
    Apr 2008
    Location
    The Netherlands
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Instead of using the date function, look for strftime. Als you have to use setlocale to get it in your language.
    Sent from my Lumia 800 using Board Express


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
  •