The upstairs is bad.
There is no date type in the C language, let alone a long date type.
Assuming that the variable has been declared, the date you want should be output like this:
printf("%4d/%2d/%2d, %2d:%2d:%2d" , year, month, day, hour, minute, second);