What does strftime() do?


In the context of this exercise, what does the strftime() function do?


The strftime() function is used to format date type values, and allows us to do useful things such as extract individual values like the month, year, or day from the date value.

For example, we can obtain these values like so, from some date.

/* Returns the day of month */
strftime("%d", date)

/* Returns the month */
strftime("%m", date)

/* Returns the year */
strftime("%Y", date)