Click or drag to resize

DateTimeFieldMathGetFieldValue Method (DateTime, DateTimeFieldEnum)

Gets 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 int GetFieldValue(
	this DateTime dateTime,
	DateTimeFieldEnum field
)

Parameters

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

Return Value

Type: Int32

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

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