Table of Contents

Class DateTimeExtensions

Namespace
Codebelt.Extensions.AwsSignature4
Assembly
Codebelt.Extensions.AwsSignature4.dll

Extension methods for the DateTime struct.

public static class DateTimeExtensions
Inheritance
DateTimeExtensions

Methods

ToAwsDateString(DateTime)

Converts the value of the specified dt to its equivalent string representation using DateStampFormat format and the formatting conventions of InvariantCulture.

public static string ToAwsDateString(this DateTime dt)

Parameters

dt DateTime

The DateTime to extend.

Returns

String

A string representation of the specified dt as yyyyMMdd.

ToAwsDateTimeString(DateTime)

Converts the value of the specified dt to its equivalent string representation using DateTimeStampFormat format and the formatting conventions of InvariantCulture.

public static string ToAwsDateTimeString(this DateTime dt)

Parameters

dt DateTime

The DateTime to extend.

Returns

String

A string representation of the specified dt as yyyyMMddTHHmmssZ.