Viết thứ ngày tháng năm và định dạng hiển thị theo CSS

Đ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>")
%>


This entry was posted on 02:11 and is filed under .Follow any comments here with the RSS 2.0 . You can leave a response so that we can know your suggestion.
0 Responses to "Viết thứ ngày tháng năm và định dạng hiển thị theo CSS"

Đăng nhận xét