Answers for "get current year from date swift"

1

swift 5 get current year

let year = Calendar.current.component(.year, from: Date())
Posted by: Guest on May-20-2021

Code answers related to "get current year from date swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language