Question: Ex: If the input is: March 1 , 1 9 9 0 April 2 1 9 9 5 7 / 1 5 / 2 0

Ex: If the input is:
March 1,1990 April 219957/15/20 December 13,2003-1
then the output is:
3-1-199012-13-2003
Use the provided GetMonthAsInt() function to convert a month string to an integer. If the month string is valid, an integer in the range 1 to 12 inclusive is returned, otherwise 0 is returned. Ex: GetMonthAsInt("February") returns 2 and GetMonthAsInt("7/15/20") returns 0.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!