×

Format Date Difference

iOS 15 +

Notes

Formats the difference of one date relative to another date. For example, “Yesterday” or “2 weeks ago”.

Syntax

formatDateDifference(firstDate: <#String (Allows Variables)#>, secondDate: <#String (Allows Variables)#>)

Example

formatDateDifference(firstDate: "January 1st 1997", secondDate: """")