PeopleCode中Date函数的用法

语法

复制代码
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:

cpp 复制代码
local date &HIREDate;
&HIREDate = Date(19970701);

另请参阅

Date3, DateValue, Day, Days360, Days365, Month, Weekday, Year.

相关推荐
一只可怜的皮卡丘9 个月前
using meta-SQL 使用元SQL 五
peoplecode·peoplesoft
一只可怜的皮卡丘10 个月前
using meta-SQL 使用元SQL
peoplecode·peoplesoft
一只可怜的皮卡丘10 个月前
Math Functions 数学函数
sql·oracle·peoplecode·peoplesoft
一只可怜的皮卡丘10 个月前
Calling COBOL Modules 调用COBOL模块
peoplecode·peoplesoft
一只可怜的皮卡丘10 个月前
Using Set Processing Examples 使用集合处理示例
peoplecode·peoplesoft
一只可怜的皮卡丘10 个月前
Chapter 5 Using Meta-SQL and PeopleCode 第五章 使用元SQL和PeopleCode
peoplecode·peoplesoft
一只可怜的皮卡丘1 年前
DateTime6
peoplecode