Tuesday, September 8, 2015

To change blogger post publish date to time & Vice-versa

In a blogger post, author of the post will be given along with either date on or time at which the post was published. This information will be shown on the top left-hand side corner of a post just below the post title. In some templates, it will be shown at the bottom left-hand side corner.
      
The manner in which it starts also varies. In some, it will be like Posted by: Author name at Time or on Date. In some templates, it will be like By Author name | Date or Time. Free blogger templates usually have former whereas in third party templates it will be latter. 

But you can change them into a format which you want. Let us consider the following HTML before proceeding any farther:
<meta expr:content='data:post.canonicalUrl' itemprop='url'/>
            <a class='timestamp-link' expr:href='data:post.url' rel='bookmark' title='permanent link'><abbr class='published' expr:title='data:post.timestampISO8601' itemprop='datePublished'><data:post.timestamp/></abbr></a>
In above HTML, you must have seen 'timestamp' being mentioned thrice. This represents that additional information of a post will be like Posted by: Author Name at Time. Now let us say you want to change into date instead of time, just replace timestamp in above code with date. Once you have changed it, your post details will be like: Posted by Tom at Friday, August 21, 2015. Otherwise it will show time at which post was published. This trick will work well in free blogger templates. 

If you are using third party blogger templates, format may be little different. Our template is also such template. Ours is something as shown below:
By <a><data:post.author/></a> &amp;nbsp;|&amp;nbsp <data:post.timestamp/> 
This means the additional information of our post will be like By Tom | Time. If we want to change it into something like By Tom | Tuesday, September 8, 2015; we have to replace timestamp in above code with date
                          
We hope you got this trick well. You can try the appropriate one in your blog once. It's really fun. If it didn't work well, let us know by dropping your problem in the comment. Enjoy Blogging. Cheers! 

No comments:

Read our comment Policy to know your rights & responsibilities before actually leaving a comment for this article.

Related Posts Plugin for WordPress, Blogger...