Click or drag to resize
QueryIsSame Method
Check if this DateTime is the same as compareDateTime, optionally at part

Namespace: MomentSharp
Assembly: MomentSharp (in MomentSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static bool IsSame(
	this DateTime dateTime,
	DateTime compareDateTime,
	DateTimeParts part = DateTimeParts.None
)

Parameters

dateTime
Type: SystemDateTime
this DateTime
compareDateTime
Type: SystemDateTime
date to compare
part (Optional)
Type: MomentSharpDateTimeParts
DateTimeParts

Return Value

Type: Boolean
boolean

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