×

Formatted Date

iOS 14 +

Notes

Display formatted date as text. You specify a timestamp which is formatted in a way you specify. You can find more info at https://widgetpack.app/documentation

Syntax

formattedDate(date: <#Date#>, dateStyle: <#Object (TextDateStyle)#>, font: <#Object (Font)#>, color: <#Object (View)#>, bold: <#Boolean#>, italic: <#Boolean#>, strikethrough: <#Boolean#>, strikethroughColor: <#Object (View)#>, underline: <#Boolean#>, underlineColor: <#Object (View)#>, kerning: <#Double#>, tracking: <#Double#>, baselineOffset: <#Double#>)

Example

formattedDate(date: February 26th 2022, dateStyle: TextDateStyle(identifier: "Style", displayString: "Style"), font: Font(identifier: "SF Pro", displayString: "SF Pro"), color: View(identifier: "View1", displayString: "View One"), bold: false, italic: false, strikethrough: false, strikethroughColor: , underline: false, underlineColor: , kerning: 0.0, tracking: 0.0, baselineOffset: 0.0)