Date/Time confusion?

This is a discussion on Date/Time confusion? within the C++ Programming forums, part of the General Programming Boards category; Hi,
Need som help with a Date/Time problem.
I've read page up and page down about different ways to determine ...

Date/Time confusion?

Hi,

Need som help with a Date/Time problem.
I've read page up and page down about different ways to determine the date and time in a function. But I get very confused because which way should I use? Which one can you recommand for me to use?

I need to determine the time and date. So I can write it to a file with some other stuff i need to remember.