DateTimeUtil Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static class DateTimeUtil
type DateTimeUtil = class
Public Class DateTimeUtil
- Inheritance
-
DateTimeUtil
Methods
Add(DateTime, TimeSpan) |
Adds a DateTime and a TimeSpan. If the resulting value exceeds MaxValue, returns MaxValue. If the resulting value is less than MinValue, returns MinValue. |
GetMaxValue(DateTimeKind) |
Gets the maximum value for a DateTime with the specified DateTimeKind. |
GetMinValue(DateTimeKind) |
Gets the minimum value for a DateTime with the specified DateTimeKind. |
ToUniversalTime(DateTime) |
Converts the specified DateTime to UTC if it is not already in UTC. |
ToUniversalTime(Nullable<DateTime>) |
Converts the specified DateTime to UTC if it is not already in UTC. |