Jump to content

How can I change the date to an Australian format ?


AUZ

Recommended Posts

Hello,

I am faced with the php command <?php echo $postdate;?> which presents the date in 6/15/2010 format.

Is there a way that I can format the date so it shows 15/6/2010 ?

Any assistance would be mostly appreciated.

Thanks

Adam

AUZ

Link to comment
Share on other sites

Thanks Nabeel,

I just checked my local.config.php but I don't have an option there for the date format,

The admin settings has it showing that its formatted correctly.

The rest of the site is working with the correct date format, its just this module I'm using by simpilot for the popup news items.

I have managed to change the format in other areas, but this format is different to the above echo '<tr><td>'.date('j/n/Y', strtotime($event->date)).'</td>';

Is there a way I can add (( echo '<tr><td>'.date('j/n/Y', strtotime($event->date)).'</td>'; )) to ((<?php echo $postdate;?>)) ?

Sorry for my general lack of php knowledge

Regards

Adam

AUZ

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...