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 "200601"
?
EDIT: I just tried this and it worked on the Go playground as a time.Format
string.
1 Like
I am getting error for the time.Format that Format not declared by the Package time
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.