Log in

View Full Version : Date/Time Format


Jacob B
01-28-2009, 12:56 PM
Hey guys.

Needing some help with date & time format. At the moment, my plugin only displays the date as 10-4-2008 and not Oct 04th '08. What exactly do I need to change to display the date as above?

Marco van Herwaarden
01-28-2009, 01:02 PM
What is the code you are using now?

Jacob B
01-28-2009, 01:11 PM
$issue['datelogged'] = vbdate($vbulletin->options['dateformat'], $issue['datelogged'], true);

Lynne
01-28-2009, 03:07 PM
The code you are using there displays the date according to the format you have set in vboptions > date & time options > format for date. So, if you change the format in that option, it will be changed for your plugin.