Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

C# Date Program

$
0
0

I am new to C# and am taking a course on it. I need help creating a program where the user enters the day, month and year seperately. They day needs to be between 1 and 30 or 31 or 28, Month 1-12 and year less than 2013. i have to use a toString to output the date to the console. The constructor must take in the day month and year to create an instance of date.

The test class needs a sintinel controlled loop to ask the user for the date, month, year and an instance with the user input using the constructor.


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>