Click or drag to resize
UpdateBuilder<TDocument>.CurrentDate Method (Expression<Func<TDocument, BsonDateTime>>)
Sets the value of the named element to the current date (see $currentDate).

Namespace: MongoDB.Driver.Builders
Assembly: MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.2.0
Syntax
public UpdateBuilder<TDocument> CurrentDate(
	Expression<Func<TDocument, BsonDateTime>> memberExpression
)

Parameters

memberExpression
Type: System.Linq.Expressions.Expression<Func<TDocument, BsonDateTime>>
The member expression.

Return Value

Type: UpdateBuilder<TDocument>
The builder (so method calls can be chained).
See Also