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
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 InvariantCulture.
public static string ToAwsDateTimeString(this DateTime dt)
Parameters
Returns
- String
A string representation of the specified
dt
asyyyyMMddTHHmmssZ
.