Click or drag to resize

DateTimeFieldMathSetFieldValue Method (DateTime, DateTimeFieldEnum, Int32)

Sets the field value.

Namespace:  com.espertech.esper.compat.datetime
Assembly:  NEsper.Compat (in NEsper.Compat.dll) Version: 8.0.0.0
Syntax
C#
public static DateTime SetFieldValue(
	this DateTime dateTime,
	DateTimeFieldEnum field,
	int value
)

Parameters

dateTime
Type: SystemDateTime
The date time.
field
Type: com.espertech.esper.compat.datetimeDateTimeFieldEnum
The field.
value
Type: SystemInt32
The value.

Return Value

Type: DateTime

[Missing <returns> documentation for "M:com.espertech.esper.compat.datetime.DateTimeFieldMath.SetFieldValue(System.DateTime,com.espertech.esper.compat.datetime.DateTimeFieldEnum,System.Int32)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DateTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also