DBA

DateFormatter() 본문

[3] Development/Swift

DateFormatter()

코볼 2022. 12. 30. 14:37
728x90
반응형
SMALL

DateFormatter 사용하기

 

let date = NSDate()

let formatter = DateFormatter()

 

formatter.dateFormat = "yyyy-MM-dd HH:mm:ss EEE"

lblCurrentTime.text = "현재시간 : " + formatter.string(from: date as Date)

728x90
반응형
LIST
Comments