6 45 LceLocalDateTimeToServer

LANSA Open Guide

6.45 LceLocalDateTimeToServer

Converts the DateTime value from the client's local timezone into UTC (Universal Coordinated Time). This function must be used when creating a where clause for LceRequestSelectWhere, if DateTime values are required in the where clause.

BOOL

LceLocalDateTimeToServer

(int 

iSession,

 

 

 char far *

strFieldName,

 

 

 char far *

strDate )

  

Parameters

iSession

The session identifier as returned by LceGetSessionId.

strFieldName

The field name of a DateTime field previously declared with LceUseField.

strDateTime

Pointer to the array that specifies the DateTime to be converted. The converted DateTime will be returned in this parameter.

  

Return Values

TRUE is returned if the session has successfully converted the DateTime.

FALSE is returned if an error occurs.

Notes

This function should only be used when specifying a value for a DateTime field in a where clause. It must not be used to convert a DateTime value which is then passed to LceSetFieldValue as this API will automatically do the conversion.

  • This function may be executed at any time after the session is opened.

Related Functions

6.29 LceGetFieldValueX

6.33 LceGetFileType

6.51 LceRequestSelectWhere