get current month, day, year

PHOTO EMBED

Fri Apr 01 2022 05:39:35 GMT+0000 (Coordinated Universal Time)

Saved by @hasnat #ios #swift #createbutton #currentmonth #date #year

let now = Date()
let dateFormatter = DateFormatter()
dateFormatter.dateFormat = "LLLL"
let nameOfMonth = dateFormatter.string(from: now)
content_copyCOPY