Welcome Guest, Not a member yet? Register   Sign In
Date manipulate question
#12

[eluser]Daniel_E9[/eluser]
Ahh I have managed to figure it out at last. I used the code below:

Code:
function index() {
            $this->load->model('article');
            $article = $this->article->get_article();
            
            $article_count = sizeof($article) -1;
            
            for ($i = 0; $i <= $article_count; $i++) {
                $article[$i]['article_date_time'] = date('d M y', strtotime($article[$i]['article_date_time']));
            }
        
            $this->parser->parse('blog', array('article' => $article));
        }

Thanks for your help again.


Messages In This Thread
Date manipulate question - by El Forum - 11-14-2009, 02:10 AM
Date manipulate question - by El Forum - 11-14-2009, 03:35 AM
Date manipulate question - by El Forum - 11-14-2009, 03:59 AM
Date manipulate question - by El Forum - 11-14-2009, 04:19 AM
Date manipulate question - by El Forum - 11-14-2009, 04:38 AM
Date manipulate question - by El Forum - 11-14-2009, 05:27 AM
Date manipulate question - by El Forum - 11-14-2009, 05:33 AM
Date manipulate question - by El Forum - 11-14-2009, 06:18 AM
Date manipulate question - by El Forum - 11-14-2009, 06:46 AM
Date manipulate question - by El Forum - 11-14-2009, 06:52 AM
Date manipulate question - by El Forum - 11-14-2009, 07:34 AM
Date manipulate question - by El Forum - 11-14-2009, 09:32 AM
Date manipulate question - by El Forum - 11-14-2009, 10:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB