DateHelper Class

Miscellaneous Methods for extending Date and Time Functions.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public class DateHelper
Inheritance
Object    DateHelper

Constructors

DateHelperInitializes a new instance of the DateHelper class

Properties

NextMonth Get the first Day of the following Month.
NowMinute Get the Time Now to the Minute, omitting all finer resolution components.

Methods

Duration Return a formatted printable Duration between two times.
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetDate2(DateTime) Return a 2 Byte Date Value.
GetDate2(Int16) Return a 2 Byte Date Value.
GetDaysInMonth Return the number of Days in the specified Month.
GetDaysRemainingInMonth Return the number of Days remaining in the specified Month.
GetDaysToTarget Return the number of days until the specified Target Date.
GetHashCode
(Inherited from Object)
GetNextDate Return the next date from the specified reference and day of month.
GetNextDay Return the first minute of the following day from the date specified.
GetPreviousDate Return the Previous date from the specified reference and day of month.
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
Parse(String) Return a DateTime object representing the caller's string representation of that date and time.
Parse(String, DateRelative) Return a DateTime object representing the caller's string representation of that date and time.
ToInt32 Return the Int32 value of the specified Day of Week.
ToMonthName Return the full month name of the specified ordinal month.
ToMonthOrdinal Return the ordinal value of the named Month.
ToResolutionDay Return a Date Time limited to the resolution of one day.
ToResolutionHour Return a Date Time limited to the resolution of one Hour.
ToResolutionSecond Return a Date Time limited to the resolution of one second.
ToString
(Inherited from Object)

See Also