DateUtils
public class DateUtils
Date/Time functions.
-
Converts the date string inside a claim to a native
Date
type, ornil
on error.Declaration
Swift
public static func dateFromAttributeString(_ dateString: String?) -> Date?
-
Converts the native
Date
type to the string representation for storing in a claim.Declaration
Swift
public static func stringFromAttributeDate(_ date: Date?) -> String
-
Converts the native
Date
value to a suitable date/time string for display to the user.Declaration
Swift
public static func displayStringFromAttributeDate(_ date: Date?) -> String
-
Converts the native
Date
value to a suitable date string, without time, for display to the user.Declaration
Swift
public static func displayStringFromAttributeDateOnly(_ date: Date?) -> String