Question
c++ program to convert date from one format to another. write main function and function called convertDate() The function receives a string of characters for
c++ program to convert date from one format to another. write main function and function called convertDate()
The function receives a string of characters for example: December 29, 1953
The function has to convert this date to the international format. For example if the string must display 29 December 1953
Use the skeleton
#include
#
using namespace std;
string convertDate()
{
//Add code
}
int main()
{
string americanDate;
//add code
return 0;
}
The main() function should prompt user to enter the string, then read the string and call function convertDate() to convert it to required form.
Start the convertDate() function by determining the position of the first space character in the input
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started