We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c5585f commit f758ad1Copy full SHA for f758ad1
WooCommerce/Classes/Extensions/DateFormatter+Helpers.swift
@@ -154,4 +154,15 @@ extension DateFormatter {
154
formatter.setLocalizedDateFormatFromTemplate("hh:mm a")
155
return formatter
156
}()
157
+
158
+ /// Date formatter used for creating a **localized** date and time string.
159
+ ///
160
+ /// Example output in English: "Jan 28, 2018, 11:23 AM"
161
162
+ public static let dateAndTimeFormatter: DateFormatter = {
163
+ let formatter = DateFormatter()
164
+ formatter.setLocalizedDateFormatFromTemplate("MMM d yyyy hh:mm a")
165
166
+ return formatter
167
+ }()
168
}
0 commit comments