Dates in Magento 2 Blog are important since they give your readers information about your blog posts, blog development, and the relevancy of the content. In this article, you're going to find out more about the dates format, learn where the dates are displayed on Magento 2 Blog and how to disable them.

Magento 2 Blog Plus and Blog Extra v2.9.1 have the option to set the dates format and disable dates displaying. However, note these options are available only for Blog Plus and Blog Extra users. 

To configure blog dates displaying in Magento 2 navigate to Stores > Configuration > Magefan Extensions > Blog.

Blog Post Publish Date

In the Design ( Blog+) section you can enable the Display Posts Publication Date and set the Posts Publication Date Format. To learn more about date formats follow this link.

Magento 2 blog post publish date configuration

Once you enable the publication date and set it when creating blog post, you will see the date on the blog posts page, and in the recent, popular and featured posts in the sidebar.

Note: blog post date is used to sort posts on blog index page, categories and in recent blog posts widget.

Magento 2 Blog Post Publish Date

Besides, you will be able to see the blog publish date on the blog index page and posts lists:

Blog Posts Publication Date

In case you disable the Display Posts Publication Date, it will be displayed neither on blog posts, nor sidebar posts or post lists.

Blog Post Publish Date

Blog Comments Date

The publication date is displayed not only for blog posts but blog post comments as well. In the Post View section of blog configurations find the Comments option and set the Comments Date Format (Blog+).

Note: the comments publication date option is available only for Magefan Blog Comments.

Magento 2 comment publish date configuration

This is how it looks like on the storefront:

Magento Blog Comments Date 

Blog Archive Date

There is one more date option available. To configure it go to the Sidebar section of blog configurations, find the Archive Widget and set the Archive Date Format.

Magento 2 blog archive widget

That is how it looks like on the storefront:

Blog Archive Date Format

Troubleshooting

Have you changed the date format, disabled it at all, flushed Magento Cache and still don't see any changes on your storefront? 

Most likely there is a problem with blog templates that have been rewritten in your Magento 2 Theme.

So, to fix this, first of all, check the templates in the following folder:

app/code/design/frontend/ThemeVendor/themename/Magefan_Blog/templates

We recommend you to pay attention to the PHP date functions.

If you use Porto theme and have the save issue, do the following:

  1. Make the backup of this folder /app/design/frontend/Smartwave/porto/Magefan_Blog and delete all the files.
  2. Replace the files you deleted from /app/design/frontend/Smartwave/porto/Magefan_Blog with these blog extension template files for Porto Theme.