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

Re: [phpXperts] Urgent Date convert

Expand Messages
  • Sabuj Kundu
    // $content = date as string $latin = array( 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ); $local = array( ০ , ১ , ২ , ৩ , ৪ , ৫ , ৬ ,
    Message 1 of 4 , Oct 12, 2009
    • 0 Attachment
      // $content = date as string

      $latin = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
      $local = array('০', '১', '২', '৩', '৪', '৫', '৬', '৭', '৮', '৯');
      $content = str_replace($latin, $local, $content);

      same way take two arrays are month in english and month in bengali and use same way for str_replace.

      there may be other ways..u can try.

      .............................................
      Sabuj Kumar Kundu
      http:/blog.manchumahara.com
      http://forum.amaderprojukti.com
      http://mkabya.page.tl



      On Mon, Oct 12, 2009 at 4:06 PM, Ashraf Jahan <adil_177@...> wrote:
       

      Dear Expert,
       
      How can I convert English date to Bangla format as 12 October 2009 to  ১২ অক্টোবর ২০০৯.
       
      Please give me the solution.



      Thank's,

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



    • shanto sas
      ... From: Ashraf Jahan Subject: [phpXperts] Urgent Date convert To: phpxperts Cc: adil_177@yahoo.com Date:
      Message 2 of 4 , Oct 13, 2009
      • 0 Attachment



        --- On Mon, 12/10/09, Ashraf Jahan <adil_177@...> wrote:

        From: Ashraf Jahan <adil_177@...>
        Subject: [phpXperts] Urgent Date convert
        To: "phpxperts" <phpexperts@yahoogroups.com>
        Cc: adil_177@...
        Date: Monday, 12 October, 2009, 3:06 PM

         

        Dear Expert,
         
        How can I convert English date to Bangla format as 12 October 2009 to  ১২ অক্টোবর ২০০৯.
         
        Please give me the solution.



        Thank's,

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



        hello, there no easy function for it. you need to convert one by one. anyway here is a reference link it will help you to do,

        http://tareq.wedevs.com/2009/04/punbb-132-extension-bangla-date-%E0%A6%AC%E0%A6%99%E0%A7%8D%E0%A6%97%E0%A6%BE%E0%A6%AC%E0%A7%8D%E0%A6%A6/

        --
        Regards,

        Saeed Ahmed
        Rajshahi, Bangladesh
        Blog: http://saeed05.wordpress.com
        --
        Follow Me LinkedinTwitter


        New Email names for you!
        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.