Sign Up! Login: Password: New User? Forgot? Support
Top Mods!
Wowhead Search
by sonofsamedi
Digital Clock
by Wolfar15
Admin Forums
Welcome to the GuildPortal Help Community! These forums are for admin-to-admin help.
Available Forums
Forums : Pimp My Site! > Date Format
Garix666 (New Admin) 2/23/2010 8:05 AM EST : Date Format
Garix666
Posts: 120
Posts With Wolves

Is there a way of changing the way in which the date is displayed? At the moment within the forums listing is is being displayed in the US format (MM/DD/YY) and would prefer it to be in the UK/EU format (DD/MM/YY)

Any help highly apreciated
TopBottom

Mottie (MVP) 2/23/2010 12:35 PM EST : RE: Date Format
GuildPortal MVP
Mottie
Posts: 3884
Zomgawsh Poster

Hi Garix666!

I would recommend that you submit a feature request about allowing individuals to set their own date/time format.

I did throw together this script that will switch the month and day in almost all dates (but I haven't tested it thoroughly). Add the following script to your Footer Area (Control Panel > Custom HTML & Script > Footer Area)
<script type="text/javascript">
$(document).ready(function(){
 $('.SmallDisplay').each(function(){
  if ($(this).text().match(/(\d+)\/(\d+)\/(\d+)/)){
   $(this).html( $(this).html().replace(/(\d+)\/(\d+)\/(\d+)/, '$2\/$1\/$3') );
  }
 })
})
</script>
TopBottom

Garix666 (New Admin) 2/23/2010 12:40 PM EST : RE: Date Format
Garix666
Posts: 120
Posts With Wolves

Mottie,

Thanks very much just what I was looking for

Looks like I'm gonna need to learn some simple scripting stuff
TopBottom

Admins Online
There are   members online.
So-and-so has logged on!
%title%
%message%