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

[eluser]Chilion[/eluser]
Hi!

I have a date from a sql DATE field.

Then I want to turn that into my preffered format. I use the mdate function now in this way:
Code:
<?php
      $datestring = '%d-%m-%Y';
      echo mdate($datestring, $statistic->creationDate);
     ?>

Then I get an error:
Quote:Fatal error: Call to undefined function mdate() in C:\USBWebserver\root\Dweper\frameworkSysteemCodeSecure\core\Loader.php(829) : eval()'d code on line 24

$statistic->creationDate is filled as: 2012-01-04

Hope u can help!


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