Sorry, I don't understand your last post.

If you pass bDOJB as "22/01/2009" then it's a string right ?

Or is there some kind of encoding which is used in C++ to turns the date 22/01/2009 into an unsigned char buffer ?

Can you show the C++ code for doing this ?

Darwen.