Search
DateTime Methods
Collapse All Expand All Members Options: Show All Members Options: Filtered
Include Inherited Members
Include Protected Members
Introduction
General Information
What's New In This Release
Version History
Getting Started
Code Completion With VSDoc IntelliSense
Programming Interface Overview
Tutorials
Reference
MindFusion.Common
MindFusion.Common.Collections
MindFusion.Controls
MindFusion.Scheduling
BaseForm Class
ButtonEventArgs Class
Calendar Class
CalendarView Enumeration
CellEventArgs Class
Contact Class
CueForm Class
DailyRecurrence Enumeration
DateChangedEventArgs Class
DateTime Class
DateTime Members
DateTime Constructor
DateTime Methods
__getDate Method
__getDay Method
__getFullYear Method
__getHours Method
__getMilliseconds Method
__getMinutes Method
__getMonth Method
__getSeconds Method
__getTime Method
__getTimezoneOffset Method
__getUTCDate Method
__getUTCDay Method
__getUTCFullYear Method
__getUTCHours Method
__getUTCMilliseconds Method
__getUTCMinutes Method
__getUTCMonth Method
__getUTCSeconds Method
__setDate Method
__setFullYear Method
__setHours Method
__setMilliseconds Method
__setMinutes Method
__setSeconds Method
__setTime Method
__setUTCDate Method
__setUTCFullYear Method
__setUTCHours Method
__setUTCMilliseconds Method
__setUTCMinutes Method
__setUTCSeconds Method
__toDateString Method
__toLocaleDateString Method
__toLocaleString Method
__toLocaleTimeString Method
__toString Method
__toTimeString Method
__toUTCString Method
__valueOf Method
addDays Method
addHours Method
addMilliseconds Method
addMinutes Method
addMonths Method
addSeconds Method
addYears Method
clone Method
combine Method
compareTo Method
daysBetween Method
equals Method
fromDateParts Method
fromDateString Method
fromMilliseconds Method
getDate Method
getDayOfMonth Method
getDayOfWeek Method
getDaysInMonth Method
getMonth Method
getWeekFirstDate Method
getYear Method
greaterThan Method
greaterThanOrEqual Method
hoursBetween Method
isLeapYear Method
lessThan Method
lessThanOrEqual Method
maxDate Method
maxValue Method
millisecondsBetween Method
minDate Method
minutesBetween Method
minValue Method
monthsBetween Method
now Method
secondsBetween Method
subtract Method
today Method
toString Method
valueOf Method
weeksBetween Method
yearsBetween Method
DateTime Properties
DayOfWeek Enumeration
DayOfWeekFormat Enumeration
DayOfWeekType Enumeration
DaysOfWeek Enumeration
FormEventArgs Class
GroupType Enumeration
HeaderEventArgs Class
HeaderType Enumeration
HorizontalHeaderStyle Enumeration
Item Class
ItemEventArgs Class
ItemModifiedEventArgs Class
ItemModifyAction Enumeration
ItemModifyingEventArgs Class
ItemSettings Class
JsonPersistContext Class
Keys Enumeration
ListSettings Class
LocalStrings Class
Location Class
MainHeaderStyle Enumeration
MonthlyRecurrence Enumeration
MonthRangeSettings Class
MonthSettings Class
Occurrence Enumeration
Orientation Enumeration
Recurrence Class
RecurrenceEnd Enumeration
RecurrenceException Class
RecurrencePattern Enumeration
RecurrenceState Enumeration
Reminder Class
ReminderType Enumeration
Resource Class
ResourceViewSettings Class
ResourceViewTimeline Enumeration
Schedule Class
Selection Class
SelectionEventArgs Class
Task Class
TaskEventArgs Class
TaskPriority Enumeration
TaskStatus Enumeration
TimelineSettings Class
TimeRange Class
TimeSpan Class
TimetableSettings Class
TimeUnit Enumeration
VerticalHeaderStyle Enumeration
ViewCell Class
WebComponents Class
WeekRangeSettings Class
WeekRangeViewStyle Enumeration
XmlPersistContext Class
YearlyRecurrence Enumeration
Licensing
Online Resources
Technical Support
MindFusion Products

## Public Methods

| Name | Description
--- | --- | ---
| __getDate | Gets the day component of this DateTime instance.
| __getDay | Gets the day of the week component of this DateTime instance.
| __getFullYear | Gets the year component of this DateTime instance.
| __getHours | Gets the hours component of this DateTime instance.
| __getMilliseconds | Gets the milliseconds component of this DateTime instance.
| __getMinutes | Gets the minutes component of this DateTime instance.
| __getMonth | Gets the month component of this DateTime instance.
| __getSeconds | Gets the seconds component of this DateTime instance.
| __getTime | Gets the number of milliseconds between Jan 1 1970 00:00:00 and this DateTime instance.
| __getTimezoneOffset | Gets the difference between GMT and local time in minutes.
| __getUTCDate | Gets the day component of this DateTime instance, according to universal time.
| __getUTCDay | Gets the day of the week component of this DateTime instance, according to universal time.
| __getUTCFullYear | Gets the year component of this DateTime instance, according to universal time.
| __getUTCHours | Gets the hours component of this DateTime instance, according to universal time.
| __getUTCMilliseconds | Gets the milliseconds component of this DateTime instance, according to universal time.
| __getUTCMinutes | Gets the minutes component of this DateTime instance, according to universal time.
| __getUTCMonth | Gets the month component of this DateTime instance, according to universal time.
| __getUTCSeconds | Gets the seconds component of this DateTime instance, according to universal time.
| __setDate | Sets the day component of this DateTime instance.
| __setFullYear | Sets the year component of this DateTime instance.
| __setHours | Sets the hours component of this DateTime instance.
| __setMilliseconds | Sets the milliseconds component of this DateTime instance.
| __setMinutes | Sets the minutes component of this DateTime instance.
| __setSeconds | Sets the seconds component of this DateTime instance.
| __setTime | Sets a date and time by adding or subtracting a specified number of milliseconds to/from midnight 1 Jan 1970.
| __setUTCDate | Sets the day component of this DateTime instance, according to universal time.
| __setUTCFullYear | Sets the year component of this DateTime instance, according to universal time.
| __setUTCHours | Sets the hours component of this DateTime instance, according to universal time.
| __setUTCMilliseconds | Sets the milliseconds component of this DateTime instance, according to universal time.
| __setUTCMinutes | Sets the minutes component of this DateTime instance, according to universal time.
| __setUTCSeconds | Sets the seconds component of this DateTime instance, according to universal time.
| __toDateString | Converts the date component of this DateTime instance to a readable string.
| __toLocaleDateString | Converts the date component of this DateTime instance to a readable string, using locale conventions.
| __toLocaleString | Converts this DateTime instance to a readable string, using locale conventions.
| __toLocaleTimeString | Converts the time component of this DateTime instance to a readable string, using locale conventions.
| __toString | Converts this DateTime instance to a readable string.
| __toTimeString | Converts the time component of this DateTime instance to a readable string.
| __toUTCString | Converts this DateTime instance to a readable string, according to universal time.
| __valueOf | Represents the primitive value of this DateTime object.
| addDays | Overloaded.
| addHours | Overloaded.
| addMilliseconds | Overloaded.
| addMinutes | Overloaded.
| addMonths | Overloaded.
| addSeconds | Overloaded.
| addYears | Overloaded.
| clone | Returns a copy of the current DateTime object.
| combine | Combines the date component of a DateTime object and the time component of another DateTime object into a new DateTime object.
| compareTo | Compares the current DateTime instance with another DateTime object and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
| daysBetween | Returns the number of days between two DateTime instances.
| equals | Returns a value indicating whether two DateTime objects are equal.
| fromDateParts | Creates a new DateTime object, by specifying its different date and time components.
| fromDateString | Creates a new DateTime object from a provided date string.
| fromMilliseconds | Creates a new DateTime object from the number of milliseconds since Jan 1st 1970.
| getDate | For internal use only.
| getDayOfMonth | Returns the day of the month of the specified DateTime.
| getDayOfWeek | Returns the day of the week of the specified DateTime.
| getDaysInMonth | Overloaded.
| getMonth | Overloaded.
| getWeekFirstDate | Returns the beginning of the week of the specified DateTime.
| getYear | Returns the year component of the specified DateTime.
| greaterThan | Checks if this DateTime object is greater than the specified DateTime object.
| greaterThanOrEqual | Checks if this DateTime object is greater than or equal to the specified DateTime object.
| hoursBetween | Returns the number of hours between two DateTime instances.
| isLeapYear | Returns a value indicating whether the year of the current DateTime instance is a leap year.
| lessThan | Checks if this DateTime object is less than the specified DateTime object.
| lessThanOrEqual | Checks if this DateTime object is less than or equal to the specified DateTime object.
| maxDate | Returns the latter of two DateTime objects.
| maxValue | Returns the highest possible DateTime value.
| millisecondsBetween | Returns the number of milliseconds between two DateTime instances.
| minDate | Returns the former of two DateTime objects.
| minutesBetween | Returns the number of minutes between two DateTime instances.
| minValue | Returns the lowest possible DateTime value.
| monthsBetween | Returns the number of months between two DateTime instances.
| now | Returns a DateTime object representing the current DateTime.
| secondsBetween | Returns the number of seconds between two DateTime instances.
| subtract | Overloaded.
| today | Returns a DateTime object representing the current Date.
| toString | Returns a string representation of the current DateTime object.
| valueOf | Represents the primitive value of this DateTime object.
| weeksBetween | Returns the number of weeks between two DateTime instances.
| yearsBetween | Returns the number of years between two DateTime instances.

## See Also

DateTime Class
MindFusion.Scheduling Namespace