Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift date to string

let today = Date()
let formatter1 = DateFormatter()
formatter1.dateStyle = .short
print(formatter1.string(from: today))
Source by www.hackingwithswift.com #
 
PREVIOUS NEXT
Tagged: #swift #date #string
ADD COMMENT
Topic
Name
1+9 =