### Get Week Number

To get the current week number, a simple solution is using DateTime.
Reference: http://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
Option 1
DateTime.DateFormat = "w"
Log(DateTime.Date(DateTime.Now))
Output Example:
37
Option 2
'Calculate the Week of the Year for a given Date
`Sub GetWeekOfYear(ticks As Long) As Int
Dim df As String = DateTime.DateFormat
DateTime.DateFormat = "w"
Dim woy As Int = DateTime.Date(DateTime.Now)
DateTime.DateFormat = df
Return woy
End Sub`
Log($"Week of the Year=${GetWeekOfYear(DateTime.Now)}"$)
Week of the Year=5

Changed: , Category: DateTime, File: T6C183M1329.htm, ID: 1329