AUZ Posted June 14, 2010 Report Share Posted June 14, 2010 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 Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted June 14, 2010 Administrators Report Share Posted June 14, 2010 Hey, Take a look in the local.config.php file, ther date format is in there, or the Admin Panel-> Site & Settings -> General Settings Quote Link to comment Share on other sites More sharing options...
AUZ Posted June 14, 2010 Author Report Share Posted June 14, 2010 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 Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted June 14, 2010 Administrators Report Share Posted June 14, 2010 Ah ok, you'll have to change it in that module. I'd look in the module itself, or the template file which is included Quote Link to comment Share on other sites More sharing options...
AUZ Posted June 15, 2010 Author Report Share Posted June 15, 2010 Ok thanks Nabeel, Have tried that but to no avail ... Will try and ask simpilot seeing though it is his coding, he may have a quick fix for me. Thanks anyway and please keep up the great work. Regards Adam AUZ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.