Returns a DateTime value representing the date and time received as parameters.

Syntax

YmdHmstoT(numeric-expression1 , numeric-expression2 , numeric-expression3 [ ,numeric-expression4 [ ,numeric-expression5 [ ,numeric-expression6 ] ] ] )

Type Returned:
DateTime

Where:
numeric-expression1
   represents the year. This value does not adjust according to the property ‘First year of 20th century’.

numeric-expression2
   represents the month.

numeric-expression3
   represents the day.

[ numeric-expression4 ]
   represents the hour. The time value must be specified in 24-hour format.

[ numeric-expression5 ]
   represents the minutes.

[ numeric-expression6 ]
   represents the seconds.

Parameters that are omitted are assumed as zero.

Note

If only one of the components (date or time) is invalid (is not a valid date or time) only this component will be considered invalid. For example: YMDHMStoT(1990, 31, 2, 12, 10, 15) will return a valid datetime value with a null date part. The time will be 12:10:15.

Scope

Objects   Procedure object, Transaction object, Web Panel object

See also

TimeZone Support - General Considerations
YMDtoD function