XbZ_FatTimeDate2DateTime()
Previous  Top  Next

XbZ_FatTimeDate2DateTime) - Convert FAT_TimeDate to Date and Time Array.

Syntax

XbZ_FatTimeDate2DateTime(<cFatTimeDate>) --> aDateTime  

Parameters

<cFatTimeDate>  
<cFatTimeDate>  

Returns

This functions returns an Xbase++ Date and an Xbase++ Time string in the form of an Array that contains both values: {dDate, cTime}, based on the supplied <cFatTimeDate> string value. The cTime string is in the format "HH:MM:SS".  

Description

This functions converts the supplied <cFatTimeDate> value from a FAT_TimeDate string value to a Date and a Time (string) value, which are returned in an array that contains both values: "{dDate, cTime}". The cTime string is in the format "HH:MM:SS". This function is the reverse of the XbZ_DateTime2FatTimeDate() function.  

Example

cFDT := XbZ_DateTime2FatTimeDate(StoD("20041129"), "12:34:56")  
aDT  := XbZ_FatTimeDate2DateTime(cFDT)  
QOut(DtoC(aDT[1]) + ' - ' + aDT[2]) --> "11/29/2004 - 12:34:56"