Use the localtime() function.
There's an example on that page.
Use the localtime() function.
There's an example on that page.
"I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008
"the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010
Hello cpjust;
Thanks for the links, but I have a problem, when ever I copy the code into my IDE
(Bloodshed Dev-C++) it runs an old DOS or command prompt window I tried it for localtime, ctime with the same result, and I just wanted to ask, What is going on??