Data is Not writing into SD card

Hi,

I have attached my code.Please take a look and help me to solve the problem related to Sd card. i'm not able to write the data into the SD card. I want to save the date and time as filename.
I'm using the Sd shield 3.0 and RTC DS3231 .

What do you see if you print the filename ?

It display Insert SD card and Filename is 20180622.. The file is blank

Best read the how to use stickies and post your code in the proper manner, using </> tags

did you try the SD card examples with this card?

Yes , I tried the Sd card example Card and it worked fine .