The format was being printed out in y,d,m when it should be y,m,d. Also, JS months are zero indexed :(
Corrected date format js Date
Months are zero based indexed
Cast to string first
Thanks for this!
Instead of the last commit "cast to string first", can't you just interpolate the month? I think interpolation inside interpolation works just fine.