📜  从日期更改为字符串 swift 5 - Swift 代码示例

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

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