Welcome Guest, Not a member yet? Register   Sign In
Date convert from SQL
#2

[eluser]PhilTem[/eluser]
There's no native PHP mdate function but it's a CI helper function. So you should ensure, that you loaded the date-helper prior to calling the method.

Secondly, I think you're not using the write markup. From the user's guide
Quote:
Code:
$datestring = "Year: %Y Month: %m Day: %d - %h:%i %a";
$time = time();

echo mdate($datestring, $time);

In this case, $time is something like 123456789. And that's not matching your format Wink


Messages In This Thread
Date convert from SQL - by El Forum - 01-08-2013, 05:41 AM
Date convert from SQL - by El Forum - 01-08-2013, 07:26 AM
Date convert from SQL - by El Forum - 01-08-2013, 11:34 AM
Date convert from SQL - by El Forum - 01-17-2013, 02:14 AM
Date convert from SQL - by El Forum - 01-23-2013, 12:20 AM
Date convert from SQL - by El Forum - 01-23-2013, 12:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB