I have a csv datafile with stock price data that I've read into a vector of structures that looks like this:
09/11/2009 9.30 open, high, low, close, volume
09/11/2009 9.31 o, h, l, c, volume
and so on to
09/11/2009 16.14 o, h, l, c, volume
//next day starts here:
09/12/2009 9.30, o, h, l, c, volume
09/12/2009 9.31, o, h, l, c, volume
As you can see, each date has ~390 minutes of price data associated with it.
I would like to be able to compare these dates, but the date field is of type string. How do I convert the string, such as 09/11/2009 to a type that allows me to do analysis on the data for a given date range, say 09/11/2009 to 09/20/2009?
Edited 5 Years Ago by toneranger: n/a