I\'m trying to make an attendance app and I am really confused about date and time in iOS and Firebase.
I use date as Key, this is the structure of my Firebase datab
in Swift 5
extension Date { static var currentTimeStamp: Int64{ return Int64(Date().timeIntervalSince1970 * 1000) } }
call like this:
let timeStamp = Date.currentTimeStamp print(timeStamp)
Thanks @lenooh