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

[eluser]Daniel_E9[/eluser]
I have a function in my model that gets everything from a database table and returns it. I then use this code to put my data into my template.

Code:
$article = $this->article->get_articles();
$this->parser-parse('index', array('article', $article));

Basically, one of the values I am getting is a field from the database with datetime. How do I amend that using date('y'm'd') etc before it goes into the parser?

Should be simple but I can't get it to work, thanks.


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