DateTimeExtensionsGetWeekNumber Method |
Determines the week number of the given
DateTime value using the ISO 8601 specification.
Namespace:
Enkoni.Framework
Assembly:
Enkoni.Framework (in Enkoni.Framework.dll) Version: 1.3.0.1
Syntaxpublic static int GetWeekNumber(
this DateTime source
)
<ExtensionAttribute>
Public Shared Function GetWeekNumber (
source As DateTime
) As Integer
public:
[ExtensionAttribute]
static int GetWeekNumber(
DateTime source
)
[<ExtensionAttribute>]
static member GetWeekNumber :
source : DateTime -> int
Parameters
- source
- Type: SystemDateTime
The date time of which the week number must be determined.
Return Value
Type:
Int32The determined week number.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DateTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also