Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Imports System.Globalization
- Public Class Form1
- Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
- Dim dateNow As Date = DateTime.Now
- Dim dfi = DateTimeFormatInfo.CurrentInfo
- Dim calendar = dfi.Calendar
- ' using Thursday because I can.
- TextBox1.Text = calendar.GetWeekOfYear(dateNow, dfi.CalendarWeekRule, DayOfWeek.Thursday)
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement