8 lines
267 B
C++
8 lines
267 B
C++
#include "Date.h"
|
|
|
|
Date::Date(unsigned int day, unsigned int month, unsigned int year) : day(day), month(month), year(year) {}
|
|
|
|
std::string Date::toString() const {
|
|
return std::to_string(day) + ", " + std::to_string(month) + ", " + std::to_string(year);
|
|
}
|