MyBB Community Forums

Full Version: [resolved] Different date format for structured data markup.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm currently integrating Structured Data Markup into each of the threads on my forum.

This is the markup suggested by Google to do so.
itemprop="datePublished" content="2014-02-23T19:10"
Where the dates are in the YYYY-MM-DD format.

My dates are currently set to display as DD-MM-YYYY.

I want to keep this, as it is readable for my users. Is there a way to do something like the following?
get_thread_date("Y M d");

Never mind, I got it working by adding the following to my showthread templates (using PHP in templates)
<?php $seodate = my_date("Y-m-d", $thread['dateline']);?>