Click or drag to resize
ParseDateTime Method
Convert this moment object to a DateTime

Namespace: MomentSharp
Assembly: MomentSharp (in MomentSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static DateTime DateTime(
	this Moment moment,
	bool bubble = false
)

Parameters

moment
Type: MomentSharpMoment
A Moment Object
bubble (Optional)
Type: SystemBoolean
Whether or not to bubble moment to the next part. E.g. 90 seconds to 1 minute and 30 seconds. If false, will throw exception given the example.

Return Value

Type: DateTime
DateTime

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Moment. 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