.<p class='date'>
&lt;script language=&quot;JavaScript&quot;&gt;

var devmon;

function isGregLeapYear(year)
{
return year%4 == 0 &amp;&amp; year%100 != 0 || year%400 == 0;
}


function gregToFixed(year, month, day)
{
var a = Math.floor((year - 1) / 4);
var b = Math.floor((year - 1) / 100);
var c = Math.floor((year - 1) / 400);
var d = Math.floor((367 * month - 362) / 12);

if (month &lt;= 2)
e = 0;
else if (month &gt; 2 &amp;&amp; isGregLeapYear(year))
e = -1;
else
e = -2;

return 1 - 1 + 365 * (year - 1) + a - b + c + d + e + day;
}

function Hijri(year, month, day)
{
this.year = year;
this.month = month;
this.day = day;
this.toFixed = hijriToFixed;
this.toString = hijriToString;
}

function hijriToFixed()
{
return this.day + Math.ceil(29.5 * (this.month - 1)) + (this.year - 1) * 354 +
Math.floor((3 + 11 * this.year) / 30) + 227015 - 1;
}

function hijriToString()
{
var months = new Array(&quot;محرم&quot;,&quot;صفر&quot;,&quot;ربيع أول&quot;,&quot;ربيع ثانى&quot;,&quot;جمادى أول&quot;,&quot;جمادى ثانى&quot;,&quot;رجب&quot;,&quot;شعبان&quot;,&quot;رمضان&quot;,&quot;شوال&quot;,&quot;ذو القعدة&quot;,&quot;ذو الحجة&quot;);
return this.day + &quot; &quot; + months[this.month - 1]+ &quot; &quot; + this.year;
}

function fixedToHijri(f)
{
var i=new Hijri(1100, 1, 1);
i.year = Math.floor((30 * (f - 227015) + 10646) / 10631);
var i2=new Hijri(i.year, 1, 1);
var m = Math.ceil((f - 29 - i2.toFixed()) / 29.5) + 1;
i.month = Math.min(m, 12);
i2.year = i.year;
i2.month = i.month;
i2.day = 1;
i.day = f - i2.toFixed() + 1;
return i;
}

var tod=new Date();
var weekday=new Array(&quot;الأحد&quot;,&quot;الإثنين&quot;,&quot;الثلاثاء&quot;,&quot;الأربعاء&quot;,&quot;الخميس&quot;,&quot;الجمعة&quot;,&quot;السبت&quot;);
var monthname=new Array(&quot;كانون الثاني&quot;,&quot;شباط&quot;,&quot;آذار&quot;,&quot;نيسان&quot;,&quot;أيار&quot;,&quot;حزيران&quot;,&quot;تموز&quot;,&quot;آب&quot;,&quot;أيلول&quot;,&quot;اكتوبر&quot;,&quot;تشرين الثاني&quot;,&quot;كانون الأول&quot;);

var y = tod.getFullYear();
var m = tod.getMonth();
var d = tod.getDate();
var dow = tod.getDay();
document.write(weekday[dow] + &quot; &quot; + d + &quot; &quot; + monthname[m] + &quot; &quot; + y);
m++;
devmon=gregToFixed(y, m, d);
var h=new Hijri(1421, 11, 28);
h = fixedToHijri(devmon);
document.write(&quot; م - &quot; + h.toString() + &quot; ه &amp;nbsp;&quot;);

&lt;/script&gt;
&lt;!-- Start JavaScript Clock Code --&gt;
&lt;b class=&quot;time7yom&quot;&gt;
&lt;span  id=&quot;js_clock&quot;&gt;

&lt;script language=&quot;javascript&quot;&gt;function js_clock(){var clock_time = new Date();
var clock_hours = clock_time.getHours();
var clock_minutes = clock_time.getMinutes();
var clock_seconds = clock_time.getSeconds();
var clock_suffix = &quot;صباحا &quot;;if (clock_hours &gt; 11){clock_suffix = &quot;مساءا&quot;;clock_hours = clock_hours - 12;}if (clock_hours == 0){clock_hours = 12;}if (clock_hours &lt; 10){clock_hours = &quot;0&quot; + clock_hours;}if (clock_minutes &lt; 10){clock_minutes = &quot;0&quot; + clock_minutes;}if (clock_seconds &lt; 10){clock_seconds = &quot;0&quot; + clock_seconds;}var clock_div = document.getElementById(&#39;js_clock&#39;);clock_div.innerHTML = clock_hours + &quot;:&quot; + clock_minutes + &quot;:&quot; + clock_seconds + &quot; &quot; + clock_suffix;setTimeout(&quot;js_clock()&quot;, 1000);}js_clock();&lt;/script&gt;&lt;/span&gt;&lt;/b&gt;
</p>