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
1empirical…
…