public void show(uDate obj) { int day = obj.getDay(); int month = obj.getMonth(); int year = obj.getYear(); Console.Write("date :-{0}-{1}-{2} ", day, month, year); }
public int getDays(uDate date1, uDate date2) { //date1.show(date1); day1 = date1.getDay(); month1 = date1.getMonth(); year1 = date1.getYear(); day2 = date2.getDay(); month2 = date2.getMonth(); year2 = date2.getYear(); day = GetDifference(); return(day); }