C++ Builder 参考手册 ➙ System::Sysutils ➙ DayOfWeek
获取某个日期是星期几 (美国习惯)
头文件:#include <System.SysUtils.hpp>
命名空间:System::Sysutils
函数原型:
System::Word __fastcall DayOfWeek(const System::TDateTime DateTime);
参数:
- DateTime:日期时间;
返回值:
- 星期 1~7 (美国习惯) 1:星期日,2:星期一,3:星期二,……,7:星期六;
- 如果要符合 ISO 8601 (1:星期一,2:星期二,……,7:星期日),需要使用 System::Dateutils::DayOfTheWeek。
相关:
- System::Dateutils::DayOfTheWeek
- System::Dateutils::DayOfTheMonth
- System::Dateutils::DayOfTheYear
- System::Dateutils::DayOf
- System::Dateutils::HourOf
- System::Dateutils::SecondOf
- System::Dateutils::MinuteOf
- System::Dateutils::MilliSecondOf
- System::Dateutils::DecodeDateTime
- System::Dateutils::EncodeDateTime
- System::Dateutils::TryEncodeDateTime
- System::Dateutils
- System::Sysutils::CurrentYear
- System::Sysutils::Now
- System::Sysutils::Date
- System::Sysutils::Time
- System::Sysutils::DecodeDate
- System::Sysutils::DecodeDateFully
- System::Sysutils::DecodeTime
- System::Sysutils::EncodeDate
- System::Sysutils::EncodeTime
- System::Sysutils::TryEncodeDate
- System::Sysutils::TryEncodeTime
- System::Sysutils::TryStrToDate
- System::Sysutils::TryStrToDateTime
- System::Sysutils::TryStrToTime
- System::Sysutils::FormatDateTime
- System::Sysutils
C++ Builder 参考手册 ➙ System::Sysutils ➙ DayOfWeek
网友评论