Method Week
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
Week(DateTime)
Returns the week number of a specified DateTime value.
public static int Week(this DateTime @this)
Parameters
this
DateTime
The DateTime value.
Returns
The week number of a specified DateTime value.
Week(DateTime, string)
Returns the week number of a specified DateTime value.
public static int Week(this DateTime @this, string timezone)
Parameters
this
DateTime
The DateTime value.
timezone
string
The timezone to use (optional, can be null).
Returns
The week number of a specified DateTime value.