Show / Hide Table of Contents

Class HttpDateUtils

Utility class to handle DateTime serialization.

Inheritance
object
HttpDateUtils
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.Common.Utils
Assembly: OCI.DotNetSDK.Common.dll
Syntax
public class HttpDateUtils

Methods

ToDateTime(string)

Parses a string into DateTime value.

Declaration
public static DateTime ToDateTime(string dateTime)
Parameters
Type Name Description
string dateTime

A string representation of a DateTime value.

Returns
Type Description
DateTime

DateTime value parsed from the input string.

ToRfc3339Format(DateTime)

Converts a DateTime value into a string in RFC3339 format.

Declaration
public static string ToRfc3339Format(DateTime dateTime)
Parameters
Type Name Description
DateTime dateTime

A DateTime value.

Returns
Type Description
string

A string representation of the DateTime value in RFC3339 format.

In this article
Back to top