Table of Contents

Class DateTimeExtensions

Namespace
Cuemon.Extensions.AspNetCore.Authentication.AwsSignature4
Assembly
Cuemon.Extensions.AspNetCore.Authentication.AwsSignature4.dll

Extension methods for the System.DateTime struct.

public static class DateTimeExtensions
Inheritance
Object
DateTimeExtensions

Methods

ToAwsDateString(DateTime)

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

public static string ToAwsDateString(this DateTime dt)

Parameters

dt DateTime

The System.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 System.Globalization.CultureInfo.InvariantCulture.

public static string ToAwsDateTimeString(this DateTime dt)

Parameters

dt DateTime

The System.DateTime to extend.

Returns

String

A string representation of the specified dt as yyyyMMddTHHmmssZ.