Gets the date when the current post was created. You can specify an arbitrary date format. Used in the WordPress loop.
The function differs from
the_date() in that it always gets the date, even if the next (in the loop) post was published on the same day (see the_date() description for details).
To change the output format, you can use the get_the_date filter.
Works based on: