Shows how to use xtd::date_time::add_months method.
#include <xtd/xtd>
class program {
public:
static auto main() {
auto date = date_time {2015, 12, 31};
for (auto ctr = 0; ctr <= 15; ctr++)
console::write_line(date.add_months(ctr).to_string("d"));
}
};
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.hpp:168