Show how to use format xtd::format class.
#include <xtd/date_time>
#include <xtd/ustring>
using namespace std;
auto main()->int {
cout << now << endl;
cout << date_time::sprintf("%Y", now) << endl;
cout << date_time::sprintf("%EY", now) << endl;
cout << date_time::sprintf("%y", now) << endl;
cout << date_time::sprintf("%0y", now) << endl;
cout << date_time::sprintf("%Ey", now) << endl;
cout << date_time::sprintf("%C", now) << endl;
cout << date_time::sprintf("%EC", now) << endl;
cout << date_time::sprintf("%G", now) << endl;
cout << date_time::sprintf("%g", now) << endl;
cout << date_time::sprintf("%b", now) << endl;
cout << date_time::sprintf("%h", now) << endl;
cout << date_time::sprintf("%B", now) << endl;
cout << date_time::sprintf("%m", now) << endl;
cout << date_time::sprintf("%0m", now) << endl;
cout << date_time::sprintf("%U", now) << endl;
cout << date_time::sprintf("%0U", now) << endl;
cout << date_time::sprintf("%W", now) << endl;
cout << date_time::sprintf("%0W", now) << endl;
cout << date_time::sprintf("%V", now) << endl;
cout << date_time::sprintf("%0V", now) << endl;
cout << date_time::sprintf("%j", now) << endl;
cout << date_time::sprintf("%d", now) << endl;
cout << date_time::sprintf("%0d", now) << endl;
cout << date_time::sprintf("%e", now) << endl;
cout << date_time::sprintf("%0e", now) << endl;
cout << date_time::sprintf("%a", now) << endl;
cout << date_time::sprintf("%A", now) << endl;
cout << date_time::sprintf("%w", now) << endl;
cout << date_time::sprintf("%0w", now) << endl;
cout << date_time::sprintf("%u", now) << endl;
cout << date_time::sprintf("%0u", now) << endl;
cout << date_time::sprintf("%H", now) << endl;
cout << date_time::sprintf("%0h", now) << endl;
cout << date_time::sprintf("%I", now) << endl;
cout << date_time::sprintf("%0I", now) << endl;
cout << date_time::sprintf("%M", now) << endl;
cout << date_time::sprintf("%0M", now) << endl;
cout << date_time::sprintf("%S", now) << endl;
cout << date_time::sprintf("%0S", now) << endl;
cout << date_time::sprintf("%c", now) << endl;
cout << date_time::sprintf("%Ec", now) << endl;
cout << date_time::sprintf("%x", now) << endl;
cout << date_time::sprintf("%Ex", now) << endl;
cout << date_time::sprintf("%X", now) << endl;
cout << date_time::sprintf("%EX", now) << endl;
cout << date_time::sprintf("%D", now) << endl;
cout << date_time::sprintf("%F", now) << endl;
cout << date_time::sprintf("%r", now) << endl;
cout << date_time::sprintf("%R", now) << endl;
cout << date_time::sprintf("%T", now) << endl;
cout << date_time::sprintf("%p", now) << endl;
cout << date_time::sprintf("%z", now) << endl;
cout << date_time::sprintf("%Z", now) << endl;
}