I have a variable: char date[11];, and I need to put inside it the current date, for example 29/06/2012.
So I’ll do something like:
printf ("%s\n", date);
And the output would be: 29/06/2012
I only found the option to print the date in words, like Fri, June 2012, but not the actual date in numbers.
So how can I print the current date in numbers?
You can reference this function strftime. I’ll let you figure out how to use it 🙂
Since you claimed that you have searched for it, I’ll provide the answer: