SyntaxFix
Write A Post
Hire A Developer
Questions
Swift 5
func printTimestamp() { let timestamp = DateFormatter.localizedString(from: NSDate() as Date, dateStyle: .medium, timeStyle: .short) print(timestamp) }
and Call function printTimestamp()