How to Add Bangla Date and Time to Website : Complete Tutorial 2020

Bengali is the language of my life. At present many blogs in Bengali language have been opened in Bangladesh. And these Bengali blogs need to show the date and time in Bengali. So today I will show you how to show date and time in Bengali on a Bengali website. If you go to many big web sites in Bangladesh, you will see that the date and time are being seen in Bengali.

How to Add Bangla Date and Time to Website : Complete Tutorial 2020

Seeing that, many people may think that it would be better if I could show it on my site. But it is not possible. And congratulations to those who are or have been possible. Those who have not yet been able to show the date and time in Bengali, show the date and time in Bengali immediately.


You can show Bengali date and time by entering a JavaScript code. However, if you run a WordPress site, you do not have to enter the code. You can show Bengali time date using a WordPress plugin. I will also share that plugin below. First I am sharing for Blogger / Blogspot site.


How to Add Bangla Time and Date to Blogger Website?

For Blogspot Blog

People who run blogspot sites may know that they have to code everything. Because no plugins can be installed on Blogspot site. Since no plugin can be installed, all we need to do is put in the code. Then find out which format is best for your site.

Style 1


[<script language = "JavaScript"> var now = new Date(); var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); var monNames = new Array("January","February","March","April","May","June","July","August","September","October","November","December"); document.write("Today's date is " + dayNames[now.getDay()] + " " + monNames[now.getMonth()] + " " + now.getDate() + ", " + now.getFullYear()); </script>]

Style 2

|

[<center><script language = "JavaScript"> var now = new Date();
var dayNames =
new Array("রবিবার","সোমবার","মঙ্গলবার","বুধবার","বৃহস্পতিবার","শুক্রবার","শনিবার");
var monNames = new Array("জানুয়ারি","ফেব্রুয়ারী","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর");

document.write("আজ " + dayNames[now.getDay()] + " " + monNames[now.getMonth()] + " " + now.getDate() + ", " + now.getFullYear()); </script> | <script>
atoj = new Date();
atoj1= atoj.getHours();
atoj2 = atoj.getMinutes();
atoj3= atoj.getSeconds();

if(atoj1==0){atoj4=" AM";atoj1=12}
else if(atoj1 <= 11){atoj4=" AM"} else if(atoj1 == 12){atoj4=" PM";atoj1=12} else if(atoj1 >= 13){atoj4=" PM";atoj1-=12}

if(atoj2 <= 9){atoj2="0"+atoj2} document.write(""+atoj1+":"+atoj2+":"+atoj3+""+atoj4+""+"");
</script></center>]


Style 3

| |



[<script language = "JavaScript"> var now = new Date(); var dayNames = new Array("রবিবার","সোমবার","মঙ্গলবার","বুধবার","বৃহস্পতিবার","শুক্রবার","শনিবার"); var monNames = new Array("জানুয়ারি","ফেব্রুয়ারী","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর"); document.write("আজ " + dayNames[now.getDay()] + " " + monNames[now.getMonth()] + " " + now.getDate() + ", " + now.getFullYear()); </script> | <script> atoj = new Date(); atoj1= atoj.getHours(); atoj2 = atoj.getMinutes(); atoj3= atoj.getSeconds(); if(atoj1==0){atoj4=" AM";atoj1=12} else if(atoj1 <= 11){atoj4=" AM"} else if(atoj1 == 12){atoj4=" PM";atoj1=12} else if(atoj1 >= 13){atoj4=" PM";atoj1-=12} if(atoj2 <= 9){atoj2="0"+atoj2} document.write(""+atoj1+":"+atoj2+":"+atoj3+""+atoj4+""+""); </script>  |

<script>eval(function (p, a, c, k, e, d) { e = function (c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) { d[e(c)] = k[c] || e(c) } k = [function (e) { return d[e] }]; e = function () { return '\\w+' }; c = 1 }; while (c--) { if (k[c]) { p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]) } } return p }('8 y(f,9,b){0 5=n x();0 h=5.z();0 k=5.A()+1;0 g=5.w();0 3=9;7(!3){3=\'i\'}e{3=3.v()}0 l=\'q://i.r/s/u/m/?t=\'+h+\'&D=\'+k+\'&Q=\'+g+\'&9=\'+3;j(l,8(K,a){7(a){0 c=J.F(f);0 4="";7(b){4=b+" "}4+=a.I;c.N=4}})}8 j(o,d){0 2=n E();2.L(\'M\',o,C);2.p=\'m\';2.P=8(){0 6=2.6;7(6==B){d(H,2.O)}e{d(6)}};2.G()}', 53, 53, 'var||xhr|lang|dateString|today|status|if|function|language|result|prefix||callback|else|containerId|yyyy|dd|bangla|getJSON|mm|jsonUrl|json|new|url|responseType|https|plus|api|day|converttobangladate|toLowerCase|getFullYear|Date|dateToday|getDate|getMonth|200|true|month|XMLHttpRequest|getElementById|send|null|FullDate|document|err|open|GET|innerText|response|onload|year'.split('|'), 0, {}))</script>
<script>dateToday('date-today', 'bangla');</script>
<span id="date-today"></span>]


How to Add Bangla Time & Date to WordPress Website?

For Wordpress:

Those who use WordPress site can put these codes and show Bengali time date. And if you do not want to go to the trouble of the code, then I am introducing you to a plugin. With this plugin you can easily show Bengali time date. The name of the plugin is Bangla Date Display. You can search and download or download from here.



Final Words:

Hopefully you can easily add Bangla Date and Time to your website. If you have any Question about “How to Add Bangla Date and Time to Website : Complete Tutorial 2020” please feel free to share with us by using Comment box. Thank you.       


Post a Comment

0 Comments