# Need some helpe with something simple to you guys!

**URL:** <https://forum.kirupa.com/t/need-some-helpe-with-something-simple-to-you-guys/240605>\
**Category:** programming\
**Created:** [October 4, 2007, 12:14pm UTC](https://forum.kirupa.com/t/need-some-helpe-with-something-simple-to-you-guys/240605 "2007-10-04T12:14:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomto](https://avatars.discourse-cdn.com/v4/letter/t/a183cd/32.png) [@tomto](https://forum.kirupa.com/u/tomto)\
**Post date:** [October 4, 2007, 12:14pm UTC](https://forum.kirupa.com/t/need-some-helpe-with-something-simple-to-you-guys/240605/1 "2007-10-04T12:14:42Z")

</div>

HIya

I’m not very good with php as you can probably tell, basically i’m just helping someone out…

[http://farrer.primecreative.com/index.php?section=news&subsection=environment](http://farrer.primecreative.com/index.php?section=news&subsection=environment)

As you can see, the dates to begin with are being pulled in in the correct format (day,month,year), but about halfway down the page the dates change to the incorrect format (year,month,day). Here is the code:

```php
    <?php for ($i=0;$i<$num_env;$i++) {
        $cat = "Environment";
        $title = $newsdata['Environment'][$i]['heading'];
        $body = $newsdata['Environment'][$i]['contents'];
        list($day,$month,$year) = explode('/',$newsdata['Environment'][$i]['date']); 
        $date = $day.'/'.$month.'/'.$year; 
    ?>
        <div id="big_title_holder"><span class="page_title"><?=$title;?> - (<?=$date;?>)</span></div>
        <p class="bodycopywide"><?=$body;?></p>
    <?php }
          //echo "Articlecount : $num_ene";
          if ($num_wat=='0') {
          
          echo "There are currently no archived articles in this section.";
          
          }
          
    ?>

```

Can anyone help me as to why this is occurring and how I can alter the php to display all the date entries in the correct format (day,month,year), I don’t have access to the database.

Many thanks  
Tom
