Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace EmployeeTest
  8. {
  9.     class Date
  10.     {
  11.         public int month;
  12.         public int day;
  13.         public int year;
  14.  
  15.         public Date(int month, int day, int year) {
  16.             this.month;
  17.             this.day = day;
  18.             this.year = year
  19.         }
  20.  
  21.         public void DisplayDate() {
  22.             return String.format("Current Date       |      {0}/{1}{2}", month.PadLeft(2, '0'), day.PadLeft(2, '0'), year);
  23.         }
  24.  
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement