Class HttpDateUtils
Utility class to handle DateTime serialization.
Inherited Members
Namespace: Oci.Common.Utils
Assembly: OCI.DotNetSDK.Common.dll
Syntax
public class HttpDateUtilsMethods
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. |