Shows how to use xtd::date_time::day_of_week property.
#include <xtd/xtd>
class program {
public:
static auto main() {
auto dt = date_time {2003, 5, 1};
console::write_line("Is Thursday the day of the week for {0:d}?: {1}", dt, dt.day_of_week() == day_of_week::thursday);
console::write_line("The day of the week for {0:d} is {1}.", dt, dt.day_of_week());
}
};
#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