Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift 5 get current date

let date = Date()
let calendar = Calendar.current
let hour = calendar.component(.hour, from: date)
let minutes = calendar.component(.minute, from: date)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #swift #current #date
ADD COMMENT
Topic
Name
4+5 =