I am trying to read in some stock data from Yahoo and the date comes in this format mm/dd/yyyy. I want to sort the data and create a field that is yyyymmdd. If you look at my while statement, where I read in the file. I can't figure out how to change this so that it reads the date in without the "/" and changes the order of the input (so I can store the individual fields yyyy mm dd in the struct vector)
To avoid confusion in the future, MM in a format string is typically understood as meaning "the month padded with zeroes to two digits". Likewise for DD and YYYY.