Convert Date English to Bangla Date Converter – PHP code

Hi everyone. Now I am working on a project that is with some calendes. And there we add a function what convert English date into Bangla. It's pretty simple php code to convert the date. Hope you will enjoy the English to Bangla Date Converter php function. The date format is > Day, Month Date, Year.

And the code is as follows

$currentDate = date("l, F j, Y");
$engDATE = array(1,2,3,4,5,6,7,8,9,0,January,February,March,April,May,June,July,August,September,October,November,December,Saturday,Sunday,Monday,Tuesday,Wednesday,Thursday,Friday);
$bangDATE = array('১','২','৩','৪','৫','৬','৭','৮','৯','০','জানুয়ারী','ফেব্রুয়ারী','মার্চ','এপ্রিল','মে','জুন','জুলাই','আগস্ট','সেপ্টেম্বর','অক্টোবর','নভেম্বর','ডিসেম্বর','শনিবার','রবিবার','সোমবার','মঙ্গলবার','
$convertedDATE = str_replace($engDATE, $bangDATE, $currentDate);
echo "$convertedDATE";

Enjoy ...

Related Post

Text to Image converter php script Protect Email ID Hi there, I did this project 1 year back and the first article about this script was in bangle. Today I will write that into English.  I prepared that...
Add all IP Address to MySQL Database – PHP Script Internet Protocol is known as IP and one day all device will be controlled  with IP address. I tried to add all IPV4 IP address into MySQL database wi...
Split domain name into sld and tld – php script A series of alphanumeric strings that are separated by periods, such as, that is an address of a computer network connection and tha...

5 thoughts on “Convert Date English to Bangla Date Converter – PHP code”

Leave a Reply

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