xtd - Reference Guide  0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
date_time_picker_format.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/ustring.h>
6 
8 namespace xtd {
10  namespace forms {
20  long_format = 1,
22  short_format = 2,
24  time = 4,
26  custom = 8,
27  };
28 
30  inline std::ostream& operator<<(std::ostream& os, date_time_picker_format value) {return os << to_string(value, {{date_time_picker_format::long_format, "long_format"}, {date_time_picker_format::short_format, "short_format"}, {date_time_picker_format::time, "time"}, {date_time_picker_format::custom, "custom"}});}
31  inline std::wostream& operator<<(std::wostream& os, date_time_picker_format value) {return os << to_string(value, {{date_time_picker_format::long_format, L"long_format"}, {date_time_picker_format::short_format, L"short_format"}, {date_time_picker_format::time, L"time"}, {date_time_picker_format::custom, L"custom"}});}
33  }
34 }
std::string to_string(const value_t &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: to_string.h:37
date_time_picker_format
Specifies the date and time format the date_time_picker control displays.
Definition: date_time_picker_format.h:18
@ time
The date_time_picker control displays the date/time value in the time format set by the user's operat...
@ long_format
The date_time_picker control displays the date/time value in the long date format set by the user's o...
@ custom
The date_time_picker control displays the date/time value in a custom format.
@ short_format
The date_time_picker control displays the date/time value in the short date format set by the user's ...
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::ustring class.