Skip to content

Instantly share code, notes, and snippets.

View SketchySwift's full-sized avatar
👻
Learning to code!

AR SketchySwift

👻
Learning to code!
View GitHub Profile

##Getting the day number of the month

var day = ""
var date = Date()
let formatter = DateFormatter()
formatter.dateFormat = "dd"
day = "\(formatter.string(from: date))"

#####Output: |14| -> which is the 14th day of December