Method AddQuarters

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver.Linq

Assembly

MongoDB.Driver.dll

AddQuarters(DateTime, int)

Adds a value in quarters to a DateTime.

public static DateTime AddQuarters(this DateTime @this, int value)

Parameters

this DateTime

The original DateTime.

value int

The value to be added.

Returns

DateTime

The resulting DateTime.

AddQuarters(DateTime, int, string)

Adds a value in quarters to a DateTime taking a timezone into consideration.

public static DateTime AddQuarters(this DateTime @this, int value, string timezone)

Parameters

this DateTime

The original DateTime.

value int

The value to be added.

timezone string

The timezone.

Returns

DateTime

The resulting DateTime.