Original post

Following is the code segment i am trying :

package main
import (
“fmt”
“time”
)

func main(){
const format = “2005-03-04”
pdate,_ := time.Parse(format, “2015-05-06”)
fmt.Println(pdate)

const shortForm = "2006-01-02"
t, _ := time.Parse(shortForm, "2013-02-03")
fmt.Println(t)

}

Corresponding output is as such:

0001-01-01 00:00:00 +0000 UTC
2013-02-03 00:00:00 +0000 UTC

Why is it happening is a different way though i have used same syntax