Type Here to Get Search Results !

Tiện ích hiển thị ngày tháng năm

Vào Layout -> Chọn phần tử trang - > Thêm tiện ích -> Add Widget/HTML

<script language=”" type=”text/javascript”>
<!– // Array ofmonth Names
<!– var monthNames = new Array(”m&#7897;t”,”hai”,”ba”,”b&#7889;n”,”n&#259;m”,”sáu”,”b&#7843;y”,”tám”,”chín”,”m&#432;&#7901;i”,”m&#432;&#7901;i m&#7897;t”,”m&#432;&#7901;i hai”); –>
var monthNames = new Array(”01&#8243;,”02&#8243;,”03&#8243;,”04&#8243;,”05&#8243;,”06&#8243;,”07&#8243;,”08&#8243;,”09&#8243;,”10&#8243;,”11&#8243;,”12&#8243;);
var dayNames = new Array(”Ch&#7911; nh&#7853;t,”,”Th&#7913; Hai,”,”Th&#7913; Ba,”,”Th&#7913; t&#432;,”,”Th&#7913; N&#259;m,”,”Th&#7913; Sáu,”,”Th&#7913; B&#7843;y,”)
var now = new Date();
thisYear = now.getYear();
thisDay = dayNames[now.getDay()];
if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem
document.write(”Hôm nay : ” + thisDay +” “+”ngày”+” “+ now.getDate() + ” tháng ” + monthNames[now.getMonth()] + ” n&#259;m ” + thisYear);
// –>
</script>