Date(date_num)
The Date function takes a number in the form YYYYMMDD and returns a corresponding Date value. If the date is invalid, Date displays an error message.
Date函数输入是一个形如“YYYYMMDD”的数字,返回一个相应的Date类型的值。如果这个日期是无效的,Date函数返回一个错误信息。
Warning! Make sure that you pass a four-digit year in the year parameter of this function. Two-digit values are interpreted literally: 93, for example, represents the year 93 AD.
确保你传入Date函数的参数的年份是一个四位数字,传入2位数字将会被按字面翻译。例如:93,代表公元93年。
Returns a date equal to the date specified in date_num.
返回一个和date_num相等的date类型的日期值.
Set the temporary variable &HIREDate to a date field containing the date July 1, 1997:
- local date &HIREDate;
- &HIREDate = Date(19970701);
Date3, DateValue, Day, Days360, Days365, Month, Weekday, Year.