Quote (Azrad @ Oct 19 2013 06:44pm)
Yeah, you were lamenting that you were going to receive the data as a string, and clearly you need the months/years/day/(and now seconds) as separate integers so you can do some math with them. My snippet shows one method (I'm sure a serious c++ programmer can probably give you a better method) of getting that data converted into the integers you need.
its a birth id im looking for.. for example 900224-3333
90 = 1990
02 = february
24 = the 24th day
3333 = is the ID for the person...
I need to be able to check the third and fourth symbol so its in the range 1-12 since there is no 13th month

and so on,, I hope you understand.