The following tables list the members exposed by SmartDate.
Name | Description | |
---|---|---|
SmartDate Constructor | Overloaded. |
Name | Description | |
---|---|---|
Date | Gets the day constituent for the current DateTime value absent any time information (i.e., as if at Midnight). | |
Day | Gets the day of the month (between 1 and 31) for the current DateTime value. | |
DayOfWeek | Gets the day of the week represented for the current DateTime value. | |
DayOfYear | Gets the calendar day of the year (between 1 and 366) for the current DateTime value. | |
DBValue | Gets a database-friendly version of the date value. | |
FormatString | Gets or sets the format string used to format a date value when it is returned as text. | |
Hour | Gets the hour constituent (between 0 and 23) of the current DateTime value. | |
IsEmpty | Indicates whether this SmartDate instance contains an empty date. | |
Millisecond | Gets the milliseconds constituent (between 0 and 999) of the current DateTime value. | |
Minute | Gets the minutes constituent (between 0 and 59) of the current DateTime value. | |
Month | Gets the months constituent (between 1 and 12) of the current DateTime value. | |
Now | Gets the SmartDate that is in the current local date and approximate time (to the best possible resolution of the system timer) on this machine. | |
Second | Gets the seconds constituent (between 0 and 59) of the current DateTime value. | |
Text | Gets or sets the date value. | |
Ticks | Gets the count of clock ticks representing the current DateTime value. | |
TimeOfDay | Gets the time-of-day constituent for the current DateTime value. | |
Today | Gets the SmartDate that is in the current date on this machine at midnight, local time. | |
UtcNow | Gets the SmartDate that is in the current universal time (UTC) date and approximate time (to the best possible resolution of the system timer) on this machine. | |
Value | Gets or sets the date value as a .NET DateTime. | |
Year | Gets the year constituent (between 1 and 9999) of the current DateTime value. |
Name | Description | |
---|---|---|
Add | Adds a TimeSpan onto the current SmartDate instance if it is non-empty. | |
AddDays | Adds the requested number of days to the current DateTime value. | |
AddHours | Adds the requested number of hours to the current DateTime value. | |
AddMilliseconds | Adds the requested number of milliseconds to the current DateTime value. | |
AddMinutes | Adds the requested number of minutes to the current DateTime value. | |
AddMonths | Adds the requested number of months to the current DateTime value. | |
AddSeconds | Adds the requested number of seconds to the current DateTime value. | |
AddTicks | Adds the requested number of clock ticks to the current DateTime value. | |
AddYears | Adds the requested number of calendar years to the current DateTime value. | |
CompareTo | Compares one SmartDate instance to another SmartDate instance. | |
DateToString | Converts a date value into a text representation. | |
DaysInMonth | Calculates the number of days in the specified month and year. | |
Equals | Overridden to compare two dates based on value equivalency. | |
GetHashCode | Overridden to calculate this SmartDate's hash code based on its underlying date value. | |
IsLeapYear | Indicates whether the specified year is a leap year. | |
Parse | Overloaded. Converts the requested string representation of a date and time into its SmartDate equivalent. | |
ParseExact | Overloaded. Converts the requested string representation of a date and time into its SmartDate equivalent adhering to a specific format. | |
StringToDate | Converts a text date representation into a Date value. | |
Subtract | Overloaded. Subtracts a TimeSpan from the current SmartDate instance if it is non-empty. | |
ToLocalTime | Gets the current DateTime value represented in local time based on the timezone configured on the machine. | |
ToLongDateString | Gets the long date string representation equivalent to the current DateTime value. | |
ToLongTimeString | Gets the long time string representation equivalent to the current DateTime value. | |
ToShortDateString | Gets the shortened date string representation equivalent to the current DateTime value. | |
ToShortTimeString | Gets the shortened time string representation equivalent to the current DateTime value. | |
ToString | Overloaded. Returns a text representation of the SmartDate value formatted according to the FormatString. | |
ToUniversalTime | Gets the current DateTime value as represented in coordinated universal time (UTC). |
Addition | Adds a TimeSpan value to a SmartDate instance. |
Equality | Overloaded. Compares whether two SmartDate instances are equivalent. |
Greater Than | Overloaded. Compares whether a SmartDate instance is greater than another SmartDate instance. |
Greater Than or Equal | Overloaded. Compares whether a SmartDate instance is greater than or equal to another SmartDate instance. |
Inequality | Overloaded. Compares whether two SmartDate instances are not equivalent. |
Less Than | Overloaded. Compares whether a SmartDate instance is less than another SmartDate instance. |
Less Than or Equal | Overloaded. Compares whether a SmartDate instance is less than or equal to another SmartDate instance. |
Subtraction | Overloaded. Deducts a TimeSpan value from a SmartDate instance. |