Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

replace mm/dd/yyyy with mm/01/yyyy

Status
Not open for further replies.

Sandeep78

Programmer
Jun 17, 2005
1
US
Hai Gurus
I am a novice in C++ programming. I have a question. I am using C++ coding to load some tables. The problem is for one column am getting date say in the format mm/dd/yyyy, the requirement is to replace it with mm/01/yyyy. Please let me know how should i do it.
Thanks
Sandeep
 
Well assuming some sort of string,
Code:
date[3] = '0';
date[4] = '1';

--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top