Click or drag to resize

DfsExtensionsMonthFraction Method

Gets the fractional month value of the DateTime.

The value returned for a specific day in the month way will differ for each month, depending on the number of days in each month

Namespace:  DHI.Generic.MikeZero.DFS
Assembly:  DHI.Generic.MIKEZero.DFS (in DHI.Generic.MIKEZero.DFS.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public static double MonthFraction(
	this DateTime dateTime
)

Parameters

dateTime
Type: SystemDateTime
DateTime

Return Value

Type: Double
Fractional month value

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