Class DateTimeExtensions
- Assembly
- Cuemon.Extensions.AspNetCore.Authentication.AwsSignature4.dll
Extension methods for the System.DateTime struct.
public static class DateTimeExtensions
- Inheritance
-
ObjectDateTimeExtensions
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
DateTimeThe System.DateTime to extend.
Returns
- String
A string representation of the specified
dt
asyyyyMMdd
.
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
DateTimeThe System.DateTime to extend.
Returns
- String
A string representation of the specified
dt
asyyyyMMddTHHmmssZ
.