>Anyone know of a way to convert a datetime to a binary?
>
>A Datetime is stored as 8 bytes so I should be able to convert it to an 8 byte string and back again.
>
>Any ideas?
>
>Cheers,
Nick,
Look at my Windows Time programming (FILE#
9738) in the download section. Date/times are stored by windows in two different structure types: the SYSTEMTIME structure and the FILETIME structure. The first is 16 bytes long and the second 8 bytes.
The programming above has conversion routines to and from these structures, as well as conversion routines for the VFP datetime data type. These routines utilize several API calls and are too length to post here.
George
Ubi caritas et amor, deus ibi est