XbZ_DateTime2FatTimeDate()
Previous  Top  Next

XbZ_DateTime2FatTimeDate() - Convert Date and Time to FAT_TimeDate.

Syntax

XbZ_DateTime2FatTimeDate(<dDate>,  
                         <cTime>) --> cFAT_TimeDate  

Parameters

<dDate>  
<dDate> contains a valid Xbase++ Date value, that should not be empty.  

<cTime>  
<cTime> contains a valid Xbase++ Time string value in the format "HH:MM:SS" that should not be empty.  

Returns

This functions returns a FAT_Time_Date string value, that is based on the supplied <dDate> and <cTime> values.  

Description

This functions converts the supplied <dDate> and <cTime> values to a FAT_Time_Date string value, as it is used in the (Windows) FAT (File Access Table) File System. This function is the reverse of the XbZ_FatTimeDate2DateTime() 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"