Click or drag to resize
DateTimeHelper Methods

The DateTimeHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberDateTimeToString
Converts the given DateTime to string value.
Public methodStatic memberGetDayStart
Gets start of the day of specific date.
Public methodStatic memberGetFirstDayOfWeek
Gets the first day of the week.
Public methodStatic memberGetFirstDayOfWeek(String)
Gets the first day of the week.
Public methodStatic memberGetFormattedValidity
Returns validity as formatted string.
Public methodStatic memberGetHourStart
Gets current date without minutes and seconds.
Public methodStatic memberGetMinuteStart
Gets current date without seconds.
Public methodStatic memberGetMonthStart
Gets the first day of the month from specific date.
Public methodStatic memberGetValidityEnum
Returns validity enumeration.
Public methodStatic memberGetValidityString
Returns validity enumeration as string.
Public methodStatic memberGetValidTo
Calculate valid to date and time according to given parameters.
Public methodStatic memberGetWeekOfYear(DateTime)
Gets the week of year number.
Public methodStatic memberGetWeekOfYear(DateTime, String)
Gets the week of year number.
Public methodStatic memberGetWeekStart(DateTime)
Gets the date from the beginning of week.
Public methodStatic memberGetWeekStart(DateTime, String)
Gets the date from the beginning of week.
Public methodStatic memberGetYearStart
Gets the first day of the year from specific date.
Public methodStatic memberIsNowOrToday
Returns true, if the given value is ##NOW## or ##TODAY## macro
Public methodStatic memberIsValidFromTo
Returns true if DateTime "from" is lower than or equal to DateTime "to" or one of them is equal to ZeroTime.
Public methodStatic memberNumberOfWeeks(DateTime, DateTime)
Gets number of weeks in specified time interval.
Public methodStatic memberNumberOfWeeks(DateTime, DateTime, String)
Gets number of weeks in specified time interval.
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
See Also