Hi, im trying to write a date problem but im having a little problem.
The program will accept an int value in the form of yyyymmdd. And i want it to display only partial of the int with printf function. Is there any function to make this work or do i need to modify printf function so it only display first 4 number for year,middle 2 number for month and last 2 for day.
ex.
date();
printf("%d",year);
Thanks.