Click or drag to resize

DateTimeExtensions Methods

The DateTimeExtensions type exposes the following members.

Methods
  Name Description
Public Extension Method AbbreviatedMonthName Gets the abbreviated month name for month of the timestamp.
Public Extension Method AbbreviatedWeekdayName Gets the abbreviated weekday name for weekday of the timestamp.
Public Extension Method BaselinedTimestamp Creates a baselined timestamp which begins at the specified time interval.
Public Extension Method DistanceBeyondSecond Gets the distance, in Ticks, beyond the top of the timestamp second.
Public Extension Method LocalTimeIsValid Determines if the specified local time is valid, by comparing it to the system clock.
Public Extension Method LocalTimeTo(DateTime, String) Converts given local time to time in specified time zone.
Public Extension Method LocalTimeTo(DateTime, TimeZoneInfo) Converts given local time to time in specified time zone.
Public Extension Method LocalTimeToCentralTime Converts given local time to Central time.
Public Extension Method LocalTimeToEasternTime Converts given local time to Eastern time.
Public Extension Method LocalTimeToMountainTime Converts given local time to Mountain time.
Public Extension Method LocalTimeToPacificTime Converts given local time to Pacific time.
Public Extension Method LocalTimeToUniversalTime Converts given local time to Universally Coordinated Time (a.k.a., Greenwich Meridian Time).
Public Extension Method MonthName Gets the full month name for month of the timestamp.
Public Extension Method ShortWeekdayName Gets the shortest weekday name for weekday of the timestamp.
Public Extension Method TimeIsValid Determines if time is valid, by comparing it to the specified current time.
Public Extension Method TimeZoneToTimeZone(DateTime, String, String) Converts given timestamp from one time zone to another using standard names for time zones.
Public Extension Method TimeZoneToTimeZone(DateTime, TimeZoneInfo, TimeZoneInfo) Converts given timestamp from one time zone to another.
Public Extension Method UniversalTimeTo(DateTime, String) Converts the specified Universally Coordinated Time timestamp to timestamp in specified time zone.
Public Extension Method UniversalTimeTo(DateTime, TimeZoneInfo) Converts the specified Universally Coordinated Time timestamp to timestamp in specified time zone.
Public Extension Method UniversalTimeToCentralTime Converts the specified Universally Coordinated Time timestamp to Central time timestamp.
Public Extension Method UniversalTimeToEasternTime Converts the specified Universally Coordinated Time timestamp to Eastern time timestamp.
Public Extension Method UniversalTimeToMountainTime Converts the specified Universally Coordinated Time timestamp to Mountain time timestamp.
Public Extension Method UniversalTimeToPacificTime Converts the specified Universally Coordinated Time timestamp to Pacific time timestamp.
Public Extension Method UtcTimeIsValid Determines if the specified UTC time is valid, by comparing it to the system clock.
Public Extension Method WeekdayName Gets the full weekday name for weekday of the timestamp.
Top
See Also