Đoạn Code sau đây giúp bạn hiển thị ngày tháng năm theo tiếng Việt và định dạng chữ theo CSS.
<% strThu = WeekDayName(WeekDay(Date))
If strThu = "Sunday" Then
Response.Write("<span style=""font-size:16;font-weight:bold; color:red;line-height:2em;"">Chủ Nhật</span><br>")
End If
If strThu = "Monday" Then
Response.Write("<span style=""font-size:16;font-weight:bold;color: blue;line-height:2em"">Thứ Hai</span><br>")
End If
If strThu = "Tuesday" Then
Response.Write("<span style=""font-size:16;font-weight:bold;color: blue;line-height:2em"">Thứ Ba</span><br>")
End If
If strThu = "Wednesday" Then
Response.Write("<span style=""font-size:16;font-weight:bold;color: blue;line-height:2em"">Thứ Tư</span><br>")
End If
If strThu = "Thursday" Then
Response.Write("<span style=""font-size:16;font-weight:bold;color: blue;line-height:2em"">Thứ Năm</span><br>")
End If
If strThu = "Friday" Then
Response.Write("<span style=""font-size:16;font-weight:bold;color: blue;line-height:2em"">Thứ Sáu</span><br>")
End If
If strThu = "Saturday" Then
Response.Write("<span style=""font-size:16;font-weight:bold;color: lime;line-height:2em"">Thứ Bảy</span><br>")
End If
Response.Write(" <b><font color=""#FFFFFF"">Ngày " & day(date()) &" Tháng "& month(date()) &"</font><br> <br><font size=""+1"" color=""red"">Năm "& year(date()) &" </font></b>")
%>
Đăng nhận xét