if I had a string like this:
var dte = '2017-07'
how would I convert that to another var with a value of 'July'?
First you split the string in "yyyy", "-" and "mm". Then you compare the last string, "mm" with paterns that correspond to the correct month. You could do this with 2 string arrays. 1 has the paterns, "01", "02" etc. The other has names, "januari", "februari" etc. Iiterate the for loop over the first array. When you have a match, you know the word you are looking for is in the other array, at the same index.
'2017-07'is not a Date object...