DEV Community

Liang Wang
Liang Wang

Posted on

Date style

VStack {
    // show just the date
    Text(Date.now, style: .date)

    // show just the time
    Text(Date.now, style: .time)
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)