Converts this dateTime to a Moment(DateTime) object
Namespace: MomentSharpAssembly: MomentSharp (in MomentSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static Moment Moment(
this DateTime dateTime
)
<ExtensionAttribute>
Public Shared Function Moment (
dateTime As DateTime
) As Moment
public:
[ExtensionAttribute]
static Moment^ Moment(
DateTime dateTime
)
[<ExtensionAttribute>]
static member Moment :
dateTime : DateTime -> Moment
Parameters
- dateTime
- Type: SystemDateTime
this DateTime
Return Value
Type:
MomentMoment(DateTime)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