How can I parse a string to Time Format (YYYYMM)? I know that I can use time.Parse(“01022006”) but this format is for (YYYYMMDD) format and I just need a MMYYYY but not a DD.
Have you tried
EDIT: I just tried this and it worked on the Go playground as a
I am getting error for the time.Format that
Format not declared by the Package time