This one has me stumped, since I don’t think this can be done with a simple DateTime method, unless there’s something I’m not understanding.
It should be simple like this: format the variables to read in the XX/XX/XXXX format and if one of these integers is 0, a console output should read ~~unspecified~~
namespace TheTime
{
public class Time
{
private int month;
private int day;
private int year;
public int Mont{}
public int Day {}
public int Year {}
Add this method to your
Timeclass.Then to use it: