System > System Assembly Classes > DateTime
The DateTime class represents date and time.
Property name | Brief description | |
![]() |
The MaxValue property returns the maximum value of the DateTime type. | |
![]() |
The MinValue property returns the minimum value of the DateTime type. | |
![]() |
The Ticks property returns the number of milliseconds since the operating system startup. | |
![]() |
The Ticks64 property returns the number of milliseconds since the operating system startup on the long work. | |
![]() |
The TimeZoneBias property returns offset of the current time from the universal time coordinate (UTC). | |
![]() |
The TimeZoneName property returns name of the current time zone. |
Method name | Brief description | |
![]() |
The Add method increases the date by the specified value. | |
![]() |
The AddDays method adds the specified number of days to the initial date. | |
![]() |
The AddHours method adds the specified number of hours to the initial date. | |
![]() |
The AddSeconds method adds the specified number of seconds to the initial date. | |
![]() |
The AddMinutes method adds the specified number of minutes to the initial date. | |
![]() |
The AddMonths method adds the specified number of months to the initial date. | |
![]() |
The AddSeconds method adds the specified number of seconds to the initial date. | |
![]() |
The AddYears adds the specified number of years to the initial date. | |
![]() |
The Compose method creates a date and time value from the specified input parameters. | |
![]() |
The ComposeDay method creates a value of time from the specified input parameters. | |
![]() |
The ComposeTimeOfDay method creates a value of time from the specified input parameters. | |
![]() |
The DaysInMonth method returns the number of days in the specified month of the specified year. | |
![]() |
The Difference method calculates difference between two dates. | |
![]() |
The FromDouble method returns the date and time value obtained by conversion from the Double format. | |
![]() |
The IsLeapYear method returns the leap year attribute. | |
![]() |
The Now returns current date and time. | |
![]() |
The Parse method converts a string into the DateTime type without validation. | |
![]() |
The Subtract method decreases the date by the specified value. | |
![]() |
The Today method returns the current date. | |
![]() |
The TryParse method converts a string into the DateTime type with validation. |
Property name | Brief description | |
![]() |
The Date property returns the date component from the current variable. | |
![]() |
The Day property returns the day of the month from the current variable. | |
![]() |
The DayOfWeek property returns the day of the week from the current variable. | |
![]() |
The DayOfYear property returns the number of the day of the current variable starting from the beginning of the year. | |
![]() |
The Hour property returns the number of hours from the current variable. | |
![]() |
The Millisecond property returns the number of milliseconds in the current variable. | |
![]() |
The Minute property returns the number of minutes from the current variable. | |
![]() |
The Month property returns the number of the month from the current variable. | |
![]() |
The Second property returns the number of seconds from the current variable. | |
![]() |
The TimeOfDay property returns the time component from the current variable. | |
![]() |
The ToDouble property returns the date value in the Double format. | |
![]() |
The ToLongDateString property returns the value of the current variable converted into string type in the full date format. | |
![]() |
Outad. Use ICultureInfo.FormatShortDate. | |
![]() |
The ToString property returns the value of the current variable converted into string type. | |
![]() |
The ToTimeString property returns the value of the current variable converted into string type in the time format. | |
![]() |
The Year property returns the number of the year from the current variable. |
See also: