Bangla date as a PHP class

41 thoughts on “Bangla date as a PHP class”

    1. āĻšāĻžā§Ÿ āĻšāĻžā§Ÿ, āĻāĻ–āĻ¨āĻŋ āĻ āĻŋāĻ• āĻ•āĻ°ā§‡ āĻĻāĻŋāĻšā§āĻ›āĻŋāĨ¤ āĻ§āĻ¨ā§āĻ¯āĻŦāĻžāĻĻ āĻœāĻžāĻ¨āĻžāĻ¨ā§‹āĻ° āĻœāĻ¨ā§āĻ¯ā§‡

  1. when i use this class bangla fonts displayed as unknown Symbol.
    I use Font SolaimanLipi as unicode font . So how can i use ur class as unicode fonts.

  2. āĻ­āĻžāĻ‡ āĻ†āĻœ āĻ¤ā§‹ ā§¨ā§Ž āĻĢāĻžāĻ˛ā§āĻ—ā§āĻ¨ ā§§ā§Ēā§§ā§Ž , āĻ•āĻŋāĻ¨ā§āĻ¤ā§ āĻāĻŸāĻž āĻĻā§‡āĻ–āĻžā§Ÿ ā§¨ā§­ āĻĢāĻžāĻ˛ā§āĻ—ā§āĻ¨āĨ¤ āĻ˛āĻŋāĻĒ-āĻ‡ā§ŸāĻžāĻ°ā§‡āĻ° āĻœāĻ¨ā§āĻ¯ āĻ•āĻŋ āĻ¸āĻŽāĻ¸ā§āĻ¯āĻžāĻŸāĻž āĻšāĻ˛ā§‹?
    āĻ­āĻžāĻ‡ āĻĻā§ŸāĻž āĻ•āĻ°ā§‡ āĻāĻŸāĻž āĻ¸āĻŽāĻžāĻ§āĻžāĻ¨ āĻ•āĻ°ā§‡ āĻĻā§‡āĻ¨, āĻ†āĻŽāĻŋ āĻ†āĻĒāĻ¨āĻžāĻ° āĻœāĻžāĻ­āĻžāĻ¸ā§āĻ•ā§āĻ°āĻŋāĻĒā§āĻŸ āĻ•ā§‹āĻĄ āĻŸāĻž āĻŦā§āĻ¯āĻŦāĻšāĻžāĻ° āĻ•āĻ°āĻŋāĨ¤

      1. āĻ…āĻ¨ā§‡āĻ• āĻ§āĻ¨ā§āĻ¯āĻŦāĻžāĻĻ āĻ­āĻžāĻ‡āĨ¤
        āĻ†āĻ°ā§‡āĻ•āĻŸāĻž āĻ¸āĻžāĻšāĻžāĻ¯ā§āĻ¯ āĻšāĻžāĻ‡āĻŦā§‹, āĻ†āĻŽāĻŋ āĻĒāĻŋāĻāĻ‡āĻšāĻĒāĻŋ āĻ•ā§‹āĻĄāĻŸāĻž āĻ°āĻžāĻ¨ āĻ•āĻ°āĻžāĻ˛ā§‡ āĻāĻŽāĻ¨ āĻ†āĻ¸ā§‡āĻƒ Array ( [0] => ā§¨ā§Ž [1] => āĻĢāĻžāĻ˛ā§āĻ—ā§āĻ¨ [2] => ā§§ā§Ēā§§ā§Ž )
        āĻ•āĻŋāĻ¨ā§āĻ¤ā§ āĻ†āĻĒāĻ¨āĻžāĻ°āĻŸāĻž āĻ†āĻ¸ā§‡ āĻāĻ­āĻžāĻŦā§‡āĻƒ document.write(‘āĻ†āĻœ ā§¨ā§Ž āĻĢāĻžāĻ˛ā§āĻ—ā§āĻ¨ ā§§ā§Ēā§§ā§Ž āĻŦāĻ™ā§āĻ—āĻžāĻŦā§āĻĻ’);

        document.write(‘āĻ†āĻœ ā§¨ā§Ž āĻĢāĻžāĻ˛ā§āĻ—ā§āĻ¨ ā§§ā§Ēā§§ā§Ž āĻŦāĻ™ā§āĻ—āĻžāĻŦā§āĻĻ’); āĻāĻ­āĻžāĻŦā§‡ āĻ†āĻ¨āĻ¤ā§‡ āĻšāĻ˛ā§‡ āĻ•āĻŋ āĻ•āĻ°āĻ¤ā§‡ āĻšāĻŦā§‡, āĻ¯āĻĻāĻŋ āĻ¸āĻŽā§Ÿ āĻšā§Ÿ āĻ¤āĻžāĻšāĻ˛ā§‡ āĻāĻ•āĻŸā§ āĻ¸āĻžāĻšāĻžāĻ¯ā§āĻ¯ āĻ•āĻ°āĻŦā§‡āĻ¨ āĻĒā§āĻ˛āĻŋāĻœāĨ¤

        1. āĻ‡ā§ŸāĻžāĻšā§………
          āĻšā§Ÿā§‡ āĻ—ā§‡āĻ›ā§‡ āĻ­āĻžāĻ‡, āĻāĻ•āĻŸā§ āĻ…āĻ¨ā§āĻ¯ āĻ­āĻžāĻŦā§‡ āĻ•āĻ°ā§‡āĻ›āĻŋ, āĻāĻ°ā§‡āĻ° āĻŽāĻžāĻ§ā§āĻ¯āĻŽā§‡ āĻ°āĻŋāĻŸāĻžāĻ°ā§āĻ¨ āĻ¨āĻž āĻ•āĻ°ā§‡ āĻ…āĻ¨ā§āĻ¯ āĻ­āĻžāĻŦā§‡ āĻ•āĻ°āĻ˛āĻžāĻŽ, āĻĻāĻžāĻ°ā§āĻ¨ āĻ•āĻžāĻœ āĻ•āĻ°āĻ›ā§‡āĨ¤
          āĻ†āĻŦāĻžāĻ°ā§‹ āĻ§āĻ¨ā§āĻ¯āĻŦāĻžāĻĻ āĻāĻ¤ā§‹ āĻ­āĻžāĻ˛ā§‹ āĻāĻ•āĻŸāĻž āĻ•āĻžāĻœ āĻ“āĻĒā§‡āĻ¨ āĻ•āĻ°ā§‡ āĻĻā§‡āĻ“ā§ŸāĻžāĻ° āĻœāĻ¨ā§āĻ¯āĨ¤
          āĻāĻ–āĻ¨ āĻĨā§‡āĻ•ā§‡ āĻ†āĻŽāĻŋ āĻ¨āĻŋāĻœā§‡āĻ° āĻšā§‹āĻ¸ā§āĻŸ āĻĨā§‡āĻ•ā§‡āĻ‡ āĻŦāĻžāĻ‚āĻ˛āĻž āĻ¤āĻžāĻ°āĻŋāĻ– āĻĻā§‡āĻ–āĻžāĻ¤ā§‡ āĻĒāĻžāĻ°āĻŦā§‹……

  3. can you please tell how will i be able to print as “ā§¨ā§Ž āĻĢāĻžāĻ˛ā§āĻ—ā§āĻ¨ ā§§ā§Ēā§§ā§Ž” format NOT in a array like “Array ( [0] => ā§¨ā§Ž [1] => āĻĢāĻžāĻ˛ā§āĻ—ā§āĻ¨ [2] => ā§§ā§Ēā§§ā§Ž )”

    1. [php]$bn = new BanglaDate(time(), 0);
      $bdt = $bn->get_date();

      $text = sprintf( ‘āĻ†āĻœ %s’, implode( ‘ ‘, $bdt ) );
      echo $text;[/php]

  4. Tareq vai,

    i used
    $bn = new BanglaDate(time(), 0);
    but the date still not changing at 12′ o’clock

    can you help?

  5. Thank you very much for the class…
    I would like to know, how do I used bengali letter in web i mean integrate bangla into web site…

    I used unicode but not worked in Linux server…

    rgds, Mamun

  6. āĻĻāĻžāĻ°ā§āĻ¨ āĻāĻ•āĻŸāĻž āĻĒā§‹āĻˇā§āĻŸāĨ¤ āĻ¤āĻŦā§‡ āĻ†āĻŽāĻžāĻ° āĻāĻ•āĻŸāĻž āĻĒāĻŋāĻāĻ‡āĻšāĻĒāĻŋ āĻ¨āĻŋāĻ‰āĻœ āĻ¸āĻžāĻ‡āĻŸā§‡āĻ° āĻœāĻ¨ā§āĻ¯ āĻ‡āĻ‚āĻ°ā§‡āĻœā§€, āĻŦāĻžāĻ‚āĻ˛āĻž āĻāĻŦāĻ‚ āĻ†āĻ°āĻŦā§€ āĻ¤āĻžāĻ°āĻŋāĻ– āĻŦāĻžāĻ‚āĻ˛āĻžāĻ¤ā§‡ āĻĻā§‡āĻ–āĻžāĻ¨ā§‹ āĻĒā§āĻ°ā§Ÿā§‹āĻœāĻ¨ āĻ›āĻŋāĻ˛āĨ¤ āĻ¸ā§‡āĻœāĻ¨ā§āĻ¯ āĻ†āĻŽāĻŋ āĻ…āĻ¨āĻ˛āĻžāĻ‡āĻ¨ā§‡ āĻ†āĻ°ā§‹ āĻ•āĻŋāĻ›ā§ āĻ¸ā§āĻ•ā§āĻ°ā§€āĻĒā§āĻŸ āĻĒā§‡ā§Ÿā§‡āĻ›āĻŋāĨ¤ āĻ¸ā§‡āĻ—ā§āĻ˛ā§‹āĻ“ āĻĻāĻžāĻ°ā§āĻ¨ āĻ•āĻžāĻœ āĻ•āĻ°āĻ›ā§‡āĨ¤ āĻ¯ā§‡āĻŽāĻ¨āĻƒ

  7. tareq bhai āĻāĻ• āĻĻāĻŋāĻ¨ āĻŦā§‡āĻļā§€ āĻšāĻšā§āĻ›ā§‡ āĻ•ā§‡āĻ¨? āĻ¯ā§‡āĻŽāĻ¨ āĻ†āĻœ ā§Ē āĻŦā§ˆāĻļāĻžāĻ– ā§§ā§Ēā§¨ā§§ āĻĻā§‡āĻ–āĻžāĻšā§āĻ›ā§‡ āĻ•āĻŋāĻ¨ā§āĻ¤ā§ āĻ†āĻœ ā§ŠāĻ°āĻž āĻŦā§ˆāĻļāĻžāĻ– ā§§ā§Ēā§¨ā§§

    1. āĻ•āĻžāĻ°āĻŖ āĻ†āĻœāĻ•ā§‡ ā§Ē āĻ¤āĻžāĻ°āĻŋāĻ–, ā§Š āĻ¤āĻžāĻ°āĻŋāĻ– āĻ¨āĻž 😉

  8. āĻĻā§ŸāĻž āĻ•āĻ°ā§‡ āĻāĻ‡ āĻ¸āĻžāĻ‡āĻŸ āĻŸāĻž āĻĻā§‡āĻ–āĻ˛ā§‡ āĻ†āĻĒāĻ¨āĻžāĻ° āĻ¤āĻžāĻ°āĻŋāĻ–ā§‡āĻ° āĻĒāĻžāĻ°ā§āĻĨāĻ•ā§āĻ¯ āĻŦā§āĻāĻ¤ā§‡ āĻĒāĻžāĻ°āĻŦā§‡āĻ¨-
    http://www.kanchanmoni.com/baisakh.html

    1. āĻ•āĻ˛āĻ•āĻžāĻ¤āĻžāĻ° āĻŦāĻžāĻ‚āĻ˛āĻž āĻ¤āĻžāĻ°āĻŋāĻ– āĻ†āĻ° āĻŦāĻžāĻ‚āĻ˛āĻžāĻĻā§‡āĻļā§‡āĻ° āĻŽāĻ§ā§āĻ¯ā§‡ āĻĒāĻžāĻ°ā§āĻĨāĻ•ā§āĻ¯ āĻ†āĻ›ā§‡āĨ¤ āĻŦāĻžāĻ‚āĻ˛āĻž āĻāĻ•āĻžāĻĄā§‡āĻŽāĻŋāĻ° āĻšāĻŋāĻ¸āĻžāĻŦ āĻ…āĻ¨ā§āĻ¯āĻžā§Ÿā§€ āĻŦāĻžāĻ‚āĻ˛āĻž āĻ¤āĻžāĻ°āĻŋāĻ–āĻ•ā§‡ āĻ¨āĻŋāĻ°ā§āĻĻāĻŋāĻˇā§āĻŸ āĻ•āĻ°ā§‡ āĻĻā§‡ā§ŸāĻž āĻšā§Ÿā§‡āĻ›ā§‡, āĻ…āĻĒāĻ°āĻĻāĻŋāĻ•ā§‡ āĻ•āĻ˛āĻ•āĻžāĻ¤āĻžā§Ÿ āĻšāĻžāĻāĻĻā§‡āĻ° āĻ‰āĻĒāĻ° āĻ­āĻŋāĻ¤ā§āĻ¤āĻŋ āĻ•āĻ°ā§‡ āĻŦāĻžāĻ‚āĻ˛āĻž āĻ¤āĻžāĻ°āĻŋāĻ– āĻ¨āĻŋāĻ°ā§āĻ§āĻžāĻ°āĻŖ āĻ•āĻ°āĻž āĻšā§ŸāĨ¤ āĻāĻ–āĻžāĻ¨ā§‡āĻ‡ āĻ—ā§‹āĻ˛āĻŽāĻžāĻ˛ āĻĒā§‡āĻ•ā§‡āĻ›ā§‡āĨ¤

  9. I had installed the Bangla date class and it was working perfectly. In the last few days it is displaying some characters like àÂĻ†àÂĻœ ১à§ÂĢ àÂĻœà§àÂĻ¯à§ˆàÂĻÂˇÃ Â§ÂÃ ÂĻ ১à§ÂĒ২১ àÂĻÂŦàÂĻâ„ĸ্àÂĻ—àÂĻžàÂĻÂŦ্àÂĻÂĻ ( http://www.ettrika.com/ettrika-display.php ) . even the direct link http://tareq.wedevs.com/bangla_date_widget.php is displaying the same. I am using

    Also, Download Bangla Date Class above this page is not working. Could you please guide us. Is there a way to have the class and run it without direct URL link ?

  10. my result this
    āĻŦā§āĻ§āĻŦāĻžāĻ°, 7 āĻœāĻžāĻ¨ā§āĻ¯āĻŧāĻžāĻ°āĻŋ 2015, 8:30:11
    But i want to
    āĻŦā§āĻ§āĻŦāĻžāĻ°, ā§­ āĻœāĻžāĻ¨ā§ā§ŸāĻžāĻ°ā§€ ā§¨ā§Ļā§§ā§Ģ, ā§ŽāĻƒā§Šā§ĻāĻƒā§§ā§§
    thanks

    1. No problem using the code, but mentioning the link to the original code would help others to find out the source and the original author will be happy too 🙂

  11. I am showing bangla blog site post date(time_ago();)function but one problem only show 2 .i want to show bengle font that like(ā§¨)—plz help

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.