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

            return(dateString);
        }
示例#2
0
文件: Date.cs 项目: rrmahb01/Lab-8
        // 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);
        }