Write a program that takes a date string formatted as YYYY-MM-DD as input, then converts and outputs it as MM/DD/YYYY.
For instance, the input 2007-07-21 will result in the following output 07/21/2007.
Write a program that takes a date string formatted as YYYY-MM-DD as input, then converts and outputs it as MM/DD/YYYY.
For instance, the input 2007-07-21 will result in the following output 07/21/2007.
Sample Input 1:
2012-09-28Sample Output 1:
09/28/2012Create a free account to access the full topic