This is my code below:
Its output is something like "Sat Dec 18 12:38:38 1971". I only want the date portion to be outputted, i.e. Dec 18 1971. Can anybody help me!Code:time_t now = time(NULL); printf("%s\n", ctime(&now));
Any help is appreciated!