Skip to content

DateSet - DateTime

Include: Use System\DateTime.pkg

Creates a DateTime from date parts and reports an invalid DateTime error when the date cannot be represented.

Type: Function

Return data type: DateTime

Parameters

Parameter Type Description
iYear Integer Year.
iMonth Integer Month number.
iDay Integer Day number.

Syntax

Function DateSet Global Integer iYear Integer iMonth Integer iDay Returns DateTime

Call

DateTime dtValue
Get DateSet 2026 7 7 to dtValue

Description

Creates a DateTime from date parts and reports an invalid DateTime error when the date cannot be represented.

See also