Skip to content

easyextensionshelpers DateTimeHelpers

BigMakCode edited this page Aug 5, 2024 · 1 revision

DateTimeHelpers Public class

Description

DateTime helpers.

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph EasyExtensions.Helpers
  EasyExtensions.Helpers.DateTimeHelpers[[DateTimeHelpers]]
  end
Loading

Members

Methods

Public Static methods

Returns Name
DateTime ParseDateTime(string datetime)
Parse DateTime from JSON format ISO 8601.
DateTimeOffset ParseDateTimeOffset(string datetime)
Parse DateTimeOffset from JSON format ISO 8601.

Details

Summary

DateTime helpers.

Methods

ParseDateTime

public static DateTime ParseDateTime(string datetime)
Arguments
Type Name Description
string datetime
Summary

Parse DateTime from JSON format ISO 8601.

Returns

Parsed datetime with UTC kind.

Exceptions
Name Description
ArgumentException
FormatException
NotSupportedException

ParseDateTimeOffset

public static DateTimeOffset ParseDateTimeOffset(string datetime)
Arguments
Type Name Description
string datetime
Summary

Parse DateTimeOffset from JSON format ISO 8601.

Returns

Parsed datetime offset.

Exceptions
Name Description
ArgumentException
FormatException

Generated with ModularDoc

Clone this wiki locally