Table of Contents

Method Week

Namespace
MongoDB.Driver.Linq
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

int

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

int

The week number of a specified DateTime value.