Welcome Guest, Not a member yet? Register   Sign In
Need Help With Formatting Date
#2

[eluser]nagolpj[/eluser]
So I am now loading the date helper and I'm using this piece of code:

Code:
$datestring = "%m/%d/%Y";
                    $date = $row['Athlete']['birthday'];
                $output .= mdate($datestring, $date).";";

The format is right but the date is displayed as 12/31/1969. What's up with that?


Messages In This Thread
Need Help With Formatting Date - by El Forum - 03-21-2008, 03:30 PM
Need Help With Formatting Date - by El Forum - 03-21-2008, 04:24 PM
Need Help With Formatting Date - by El Forum - 03-21-2008, 04:36 PM
Need Help With Formatting Date - by El Forum - 03-21-2008, 04:48 PM
Need Help With Formatting Date - by El Forum - 03-24-2008, 08:43 PM
Need Help With Formatting Date - by El Forum - 03-26-2008, 06:01 AM
Need Help With Formatting Date - by El Forum - 03-26-2008, 09:02 AM
Need Help With Formatting Date - by El Forum - 03-26-2008, 09:10 AM
Need Help With Formatting Date - by El Forum - 03-26-2008, 09:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB