web 2.0

VB.NET & DayOfWeek()

VB.NET & DayOfWeek() - DayOfWeek() : Gets the day of the week represented by this instance.

ShotDev Focus:
- VB.NET & DayOfWeek()


0 = Sunday
1 = Monday
2 = Tuesday
3 = Wednesday
4 = Thursday
5 = Friday
6 = Saturday

Example

DayOfWeek.aspx

<%@ Page Language="VB" %>
<script runat="server">

Sub Page_Load(sender As Object, e As EventArgs)
Session.LCID = 1033
Dim strDate As DateTime
strDate = "11/15/2008 08:30:25"
Me.lblText1.Text = strDate.DayOfWeek()
End Sub

</script>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form runat="server">
<asp:Label id="lblText1" runat="server"></asp:Label><br />
</form>
</body>
</html>

Screenshot

VB.NET & DayOfWeek()
.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

One Response to “VB.NET & DayOfWeek()”

  1. 1empirical…

Leave a Reply

You must be logged in to post a comment.