My question is how to take this code:
And get the beginning of that date. Let's say that Date() return March 17, 2021, 9 pm: 47 : 32 . How would you take that and get March 17, 2021, 12 am : 00 : 00?
Also, my aim is to get code that works in SwiftUI because every other online forum I searched had out dated results for UIkit or Swift 3.
Thank you,
Rorocoder
Code Block var now = Date()
And get the beginning of that date. Let's say that Date() return March 17, 2021, 9 pm: 47 : 32 . How would you take that and get March 17, 2021, 12 am : 00 : 00?
Also, my aim is to get code that works in SwiftUI because every other online forum I searched had out dated results for UIkit or Swift 3.
Thank you,
Rorocoder