π Date β
go
import (
"github.com/thuongtruong109/gouse"
)
1. Date i s o β
Description: Get current date in ISO format
go
func DateISO() {
println("ISO:", gouse.ISODate())
}
2. Date short β
Description: Get current date in short formats
go
func DateShort() {
println("ShortNormal:", gouse.NormalDate())
println("ShortReverse:", gouse.ReverseDate())
println("ShortDash:", gouse.DashDate())
println("ShortDot:", gouse.DotDate())
println("ShortUnderscore:", gouse.UnderlineDate())
println("ShortSpace:", gouse.SpaceDate())
println("ShortMonth:", gouse.MonthDate())
}
3. Date long β
Description: Get current date in long format
go
func DateLong() {
println("Long:", gouse.LongDate())
}
4. Date u t c β
Description: Get current date in UTC format
go
func DateUTC() {
println("UTC:", gouse.UTCDate())
}