the_date() not always working on archive page?

Is your date not displaying under specific archive page posts? You may need to use the_time() function instead.

Why you should use the the_time() instead of the_date()

Whenever you’re displaying multiple posts on one page, for example on a post’s archive, you should always use the_time() function in order to display the date.

The reason being is that posts which use the_date() function will not be able to display the date for posts which have been published on the same day as another post.

In order to correctly display the date, you should use the_time() function and feed in your required date parameters accordingly. as per the example below.

the_time( 'd, m, Y' );