Table of Contents

Class DateRanges

Namespace
Tripous
Assembly
Tripous.dll

DateRange extensions

public static class DateRanges
Inheritance
DateRanges
Inherited Members

Fields

PrefixFrom

Constant

public static readonly string PrefixFrom

Field Value

string

PrefixTo

Constant

public static readonly string PrefixTo

Field Value

string

WhereRanges

Constant

public static readonly DateRange[] WhereRanges

Field Value

DateRange[]

Methods

IsPast(DateRange)

True if Range denotes a past time (Today included)

public static bool IsPast(this DateRange Range)

Parameters

Range DateRange

Returns

bool

ToDates(DateRange, DateTime, ref DateTime, ref DateTime)

Converts a DateRange to two DateTime values.

public static bool ToDates(this DateRange Range, DateTime Today, ref DateTime FromDate, ref DateTime ToDate)

Parameters

Range DateRange
Today DateTime
FromDate DateTime
ToDate DateTime

Returns

bool

ToDates(DateRange, ref DateTime, ref DateTime)

Converts a DateRange to two DateTime values.

public static bool ToDates(this DateRange Range, ref DateTime FromDate, ref DateTime ToDate)

Parameters

Range DateRange
FromDate DateTime
ToDate DateTime

Returns

bool