xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

TtoC()

Converts a DateTime value to a character string in SET DATE and SET TIME format.

Syntax

TtoC( <dDateTime> ) --> cDateTimeString

Arguments

<dDateTime>
The parameter must be a value of data type Date or DateTime.

Return

The return value is a character string formatted in the current SET DATE and SET TIME format.

Description

The function converts a DateTime value to a character string. The string is formatted according to the current SET DATE and SET TIME format.

Important:  use TtoC() and its counterpart CtoT() with extreme care. The result of both functions depends on the current SET DATE, SET EPOCH and SET TIME settings.

Info

See also:DateTime(), DtoC(), SET CENTURY, SET DATE, SET EPOCH, SET TIME, StoT(), TtoC(), TtoS()
Category: Conversion functions , Date and time , xHarbour extensions
Source:rtl\dateshb.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe