Skip to content

πŸ”– 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())
}

Released under the MIT License.