Beispiel #1
0
        // ToString Method
        public override string ToString()
        {
            string dateString = Month.ToString("d2") + "/" + Day.ToString("d2") + "/" + Year.ToString("d4");

            return(dateString);
        }
Beispiel #2
0
        // Precondition: None
        // Postcondition: Creates a string in MM/DD/YYYY format
        public override string ToString()
        {
            string result = Month.ToString("D2") + "/" + Day.ToString("D2") + "/" + Year.ToString("D4");

            return(result);
        }