<< Return to Main Index

< Return to Class Index

GXFormatTimeStamp

void GXFormatTimeStamp(CString& strRet, const TIMESTAMP_STRUCT* pTimeStruct);

void GXFormatTimeStamp(CString& strRet, const CTime* pTime);

strRet

A reference to a CString where the method will store the formatted date string.

pTimeStruct

Points to a TIMESTAMP_STRUCT which holds the date and time information.

pTime

Points to a CTime which holds the date and time information.

Remarks

Formats the given time value with locale representation of date formats as specified in the international section of WIN.INI or the registry.

Both TIMESTAMP_STRUCT and CTime date representations are supported. The advantage of TIMESTAMP_STRUCT is that you can specify dates earlier than 1970 and later than 2037, which is a known limitation of the CTime class.

Control-Factory Specific ->

This method has been implemented using the abstraction mechanism as discussed in the chapter "Reducing the size of your application" in the user's guide. A call to the GXImplementOleDateTime or GXImplementNoOleDateTime method from within the control factory class' InitializeGridComponents method will make the concrete implementation of this method available to your application.

If no concrete implementation is available this method performs no action. A warning will be displayed in the debug window.

END Control-Factory Specific

See Also

GXParseDateTime GXUpdateDateTimeSettings

Macros

Class Overview | Class Members