package main
import (
"fmt"
"time"
)
func main() {
today := time.Now()
fmt.Println("Current Date Time: ", today.Format("02/01/2006 15:04:05"))
}
Output
Current Date Time: 28/11/2021 13:27:12
package main
import (
"fmt"
"time"
)
func main() {
today := time.Now()
fmt.Println("Current Date Time: ", today.Format("02/01/2006 15:04:05"))
}
Current Date Time: 28/11/2021 13:27:12