VB.NET & DayOfYear() - DayOfYear() : Gets the day of the year represented by this instance.
ShotDev Focus:
- VB.NET & DayOfYear()
Example
DayOfYear.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.DayOfYear() 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
1annexation…
…