Please explain


#1

what is the meaning of %02d and %04d ??


#2

you understand what %d? The number simply indicate the number of decimals you want to display.


#3

i dont understand what it s use in displaying date time year month etc


#4

some times %04d is used and other time %02d how to get to know what to use when ?


#5

the year is 2018, that is four digits which is why we use %04d, while the month is April, which is the 4th month (04), which we want to display with 2 digits.