let currenttime
= Date()
let dateFormatter
= DateFormatter()
var convertedDate
= dateFormatter
.string(from
: currenttime
)
dateFormatter
.dateFormat
= "yyyy-MM-dd HH:mm:ss"
convertedDate
= dateFormatter
.string(from
: currenttime
)
转载请注明原文地址: https://yun.8miu.com/read-108122.html