neoraghav 0 Light Poster

Hi,

I'm using vc++ 6.0.
I used the Date Time Picker Control in the dialog to get Date of birth from the user.
Now i want to capture the date of birth and write it to a file.

I created a variable for IDC_DATETIMEPICKER as COleDateTime with name m_DateOfBirth using class wizard.i wrote m_DateOfBirth to a file and it printed some junk value..

how to print the date that the user picks in the dialog to a file.......
please help........