If you use mikroC PRO then you have function to create a new file. It uses a string variable for file name. If you set the string to DDMMYY\0 and use the string as filename for the file to be created then you will have what you want.
Thanks Jayanth,
yes, I use mikroC Pro,
the part of code:
Code:
char filename[14] = "BROJAC0x.TXT"; // File names
// Creates new file and writes some data to it
void M_Create_New_File() {
filename[7] = '1';
Mmc_Fat_Set_File_Date(2013, 9, 21, 9, 0, 0); // Set file date & time info
Mmc_Fat_Assign(&filename, 0xA0); // Find existing file or create a new one
Mmc_Fat_Rewrite(); // To clear file and start with new data
....
}
On this way I create file name BROJAC01.TXT,
but I need date info on file name...