Table of Contents

Method CurrentDate

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

CurrentDate(string)

Sets the value of the named element to the current date (see $currentDate).

public static UpdateBuilder CurrentDate(string name)

Parameters

name string

The name of the element.

Returns

UpdateBuilder

The builder (so method calls can be chained).

CurrentDate(string, UpdateCurrentDateType)

Sets the value of the named element to the current date (see $currentDate).

public static UpdateBuilder CurrentDate(string name, UpdateCurrentDateType type)

Parameters

name string

The name of the element.

type UpdateCurrentDateType

The type to use.

Returns

UpdateBuilder

The builder (so method calls can be chained).