TimeUtils.IsDateWithinLastDays method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Time
Assembly Skybrud.Essentials.dll

IsDateWithinLastDays(DateTime, int)

Static

Returns whether date is within the last number of specified days.

public static bool IsDateWithinLastDays(DateTime date, int days)

Parameters

date DateTime

The date.

days int

The number of days.

Returns

true if the date is within the last number of days, otherwise false.

IsDateWithinLastDays(DateTimeOffset, int)

Static

Returns whether date is within the last number of specified days.

public static bool IsDateWithinLastDays(DateTimeOffset date, int days)

Parameters

The date.

days int

The number of days.

Returns

Returns true if the date is within the last number of days, otherwise false.