Quantcast
Channel: Date manipulation question
Viewing all articles
Browse latest Browse all 20

Date manipulation question

$
0
0

I have to make an array and fill it with months ie "January", "Febuary", etc.  and use the numeric representation of the month as the index. Then I need to convert the numerical string to a int (probably using atoi). 


Then  read in the data in main in the form of mm/dd/YYYY and pass it to a function that determines the month and returns a 

new string with the month as a word…..

Not sure exactly how to due this.

Do you ever pay attention to what others try to suggest to you? Two days ago i gave you a link from where you could borrow the fast and effective (though, rather expensive) way to translate date fromstring (such as "30/01/2012") into int format using std::istringstreamhttp://stackoverflow.com/questions/3263661/format-a-date-in-c.



Viewing all articles
Browse latest Browse all 20

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>