ISOWeek.ToDateTime(Int32, Int32, DayOfWeek) 方法
定义
将由指定 ISO 年份、周数和星期几表示的 ISO 周日期映射到相应的公历日期。Maps the ISO week date represented by a specified ISO year, week number, and day of week to the equivalent Gregorian date.
public:
static DateTime ToDateTime(int year, int week, DayOfWeek dayOfWeek);
public static DateTime ToDateTime (int year, int week, DayOfWeek dayOfWeek);
static member ToDateTime : int * int * DayOfWeek -> DateTime
Public Shared Function ToDateTime (year As Integer, week As Integer, dayOfWeek As DayOfWeek) As DateTime
参数
- year
- Int32
ISO 周编号年份(也称为非正式的 ISO 年份)。An ISO week-numbering year (also called an ISO year informally).
- week
- Int32
给定的 ISO 周编号年份中的 ISO 周数。The ISO week number in the given ISO week-numbering year.
- dayOfWeek
- DayOfWeek
给定的 ISO 周内一星期中的某一天。The day of week inside the given ISO week.
返回
公历日期相当于输入的 ISO 周日期。The Gregorian date equivalent to the input ISO week date.