Returns the DateTime of the specified column.

Syntax

XIH.GetDateTime(colcaption)
XIH.GetDateTime(colcaption, offset)
XIH.GetDateTime(colIndex)
XIH.GetDateTime(colIndex, offset)

Parameters

Parameter

Data type

Description

Sample

colcaption

string

String specifies the columns caption.

"col1"

colIndex

int

Index of a column

1

offset

int

Optionally specifies the row offset. Default is 1

1

Remarks

ColumnIndex is zero-based.

A statement with an offset returns default value of DateTime after reaching the end of the column due to the offset. (01.01.0001 00:00:00).

Is not intended for conversion.

Returns a DateTime value.

Examples

XIH.RowNumber() >= (XIH.Rows-2) ? System.DateTime.Now :
XIH.GetDateTime("starttime",2)

Note that you have to name the column your creating "starttime for this example to work.

Related