I want to write a program that accepts date from the user in the for mm/dd/yy and then displays it in the form yymmdd

Enter a date(mm/dd/yy): 2/17/96
You entered the date 96021?

The program should be in C language.....thank u!!

Recommended Answers

All 2 Replies

A rule of thumb around here is that you post your existing code which you have problems with, or at least a pseudo-code. The sole piece advice which can be given is to store the parts of the date in separate variables which you then print in the new format.

It is very easy to get your problems solved or doubts clarified with the thousands of knowledgeable programmers waiting to help you here in Daniweb, and that much difficult to get your homeworks done without showing any intention of learning or trying to solve by your own.
Good luck !!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.