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
To create a C program that converts a date from the format Month Day Year to Day Month Year you can ... View full answer
Get step-by-step solutions from verified subject matter experts
