xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

SX_DtoP()

Converts a Date value into a 3-byte character string.

Syntax

SS_DtoP( <dDate> ) --> cPackedDate

Arguments

<dDate>
This is an expression returning a value of data type Date.

Return

The function returns the packed Date value as a binary character string.

Description

Function SX_DtoP() is used to compress Date values from 8 bytes to a binary character string of 3-bytes, thus reducing storage space in index or database files for Dates. Function SX_PtoD() converts a packed Date value back to its original data type.

Info

See also:SX_PtoD()
Category: Conversion functions , Date and time , Six driver
Source:rdd\hbsix\sxdate.c
LIB:xhb.lib
DLL:xhbdll.dll


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