VB Date -> C
I'm in the process of converting one of my old programs from VB to C and I need to find the equivalent type for the Date data type. It's described as a 64-bit floating-point number, so I've declared it as a double for now, but does anyone know how exactly dates and times are stored in it? Are there any API functions that'll deal with this infernal type? :p
The date type can be transfered between C & VB via that VARIANT struct (or one of the wrappers provided with VC++)....and there are a number of APIs for converting and using VARIANTS
If your not touching VB, then store ii in whatever format you want..
For instance, in other parts of the API they use a struct of 3 WORDS to represent the date....depends on what you want