human
I have a question about the Swift UI. How do I get the current date and time?
assistant
You can use the date and time constants. For example, you can use Date() to get the current date, and DateComponents() to get the current time.