Click or drag to resize

DateRange Properties

The DateRange type exposes the following members.

Properties
 NameDescription
Public propertyIsLowerInclusive If true, the date range includes the Lower value. Otherwise values equal to or less than the Lower value are out of the range.
Public propertyIsUpperInclusive If true, the range includes the Upper value. Otherwise values equal to or greater than the Upper value are out of the range.
Public propertyStatic memberLast12Months Gets a DateRange representing the preceding 12 months from midnight to midnight in the current Offset using the current DateTimeFormat rule
Public propertyStatic memberLastMonth Gets a DateRange representing the preceding month from midnight to midnight in the current Offset using the current DateTimeFormat rule
Public propertyStatic memberLastWeek Gets a DateRange representing the preceding week from midnight to midnight in the current Offset using the current DateTimeFormat rule
Public propertyStatic memberLastYear Gets a DateRange representing the preceding year from midnight to midnight in the current Offset using the current DateTimeFormat rule
Public propertyLower Gets or sets the lowest value in the range.
Public propertyStatic memberThisMonth Gets a DateRange representing the current month from midnight to midnight in the current Offset using the current DateTimeFormat rule
Public propertyStatic memberThisWeek Gets a DateRange representing the current week from midnight to midnight in the current Offset using the current DateTimeFormat rule
Public propertyStatic memberThisYear Gets a DateRange representing the current year from midnight to midnight in the current Offset using the current DateTimeFormat rule
Public propertyStatic memberThisYearToDate Gets a DateRange representing the current year through today's date from midnight to midnight in the current Offset using the current DateTimeFormat rule
Public propertyTimeSpan Gets the duration implied by the date range.
Public propertyStatic memberToday Gets a DateRange representing the current date from midnight to midnight in the current Offset
Public propertyUpper Gets or sets the highest value in the range.
Public propertyStatic memberYesterday Gets a DateRange representing the date before the current date from midnight to midnight in the current Offset
Top
See Also