Fix getting date/time inside variant

MS date/time require different handling. Allocate and use correct
structure.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Check precision/scale from numeric inside VARIANT

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>