View Single Post
Old Jun 23rd, 2006, 12:26 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
If you want to increment a numeric value which is being presented as text, you need to convert the text to the appropriate numeric value, increment it, then convert it back to a textual representation. To restrict the operation to days, only, take the first two characters as a unit, convert to numeric, increment, convert back.

You might wish to investigate the various capabilities offered by the libraries. There are a number of date/time manipulations that one can do.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote