Basically, If I run this code I can get date
t := time.Now()
fmt.Println(t.Format("02/01/2006"))
My question is how to convert Go year to Buddhist year in this format?
Note a formula for converting year in A.D. to B.E format is
B.E. = A.D. + 543
Well I highly doubt that a format string exists which will product Buddhist time so just do the simple straight forward thing and add 543 years to your date... You should probably use a constant for the beDifference
.
t := time.Now()
buddhaTime = t.AddDate(543, 0, 0)