diff --git a/CryptoExchange.Net/ExtensionMethods.cs b/CryptoExchange.Net/ExtensionMethods.cs
index a649050..4c14859 100644
--- a/CryptoExchange.Net/ExtensionMethods.cs
+++ b/CryptoExchange.Net/ExtensionMethods.cs
@@ -189,6 +189,16 @@ namespace CryptoExchange.Net
throw new ArgumentException($"No values provided for parameter {argumentName}", argumentName);
}
+ ///
+ /// Format a string to RFC3339/ISO8601 string
+ ///
+ ///
+ ///
+ public static string ToRfc3339String(this DateTime dateTime)
+ {
+ return dateTime.ToString("yyyy-MM-dd'T'HH:mm:ss.fffzzz", DateTimeFormatInfo.InvariantInfo);
+ }
+
///
/// Format an exception and inner exception to a readable string
///