We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0650039 commit 97adefcCopy full SHA for 97adefc
Sources/StructuredQueriesCore/QueryRepresentable/Date+ISO8601.swift
@@ -16,9 +16,17 @@ extension Date {
16
public struct ISO8601Representation: QueryRepresentable {
17
public var queryOutput: Date
18
19
+ public var iso8601String: String {
20
+ queryOutput.iso8601String
21
+ }
22
+
23
public init(queryOutput: Date) {
24
self.queryOutput = queryOutput
25
}
26
27
+ public init(iso8601String: String) throws {
28
+ try self.init(queryOutput: Date(iso8601String: iso8601String))
29
30
31
32
0 commit comments