📜  将日期转换为字符串 - Swift 代码示例

📅  最后修改于: 2022-03-11 15:01:03.249000             🧑  作者: Mango

代码示例2
let today = Date()
let formatter1 = DateFormatter()
formatter1.dateStyle = .short
print(formatter1.string(from: today))