diff --git a/Date.cpp b/Date.cpp new file mode 100644 index 0000000..19f3cc4 --- /dev/null +++ b/Date.cpp @@ -0,0 +1,13 @@ +#include "Date.h" + +Date::Date(int year, int month, int day) +{ + this->year = year; + this->month = month; + this->day = day; +} + +string Date::ShowDate() +{ + return to_string(this->year) + "-" + to_string(this->month) + "-" + to_string(this->day); +}