Welcome Guest, Not a member yet? Register   Sign In
Beginner Date Helper Question
#8

[eluser]seth.aldridge[/eluser]
I did the human_to_unix($row->Date); and it converted the date, but now the mdate function is only displaying the timestamp. Do I have to convert the Unix to a string before it can properly read it?

Here is my code:

Code:
<?=$td = human_to_unix($row->Date); mdate("%F %j", $td); ?>

This is what it outputs:

Code:
1225958400

FIXED! - I had to assign mdate() to a variable and then call the variable.


Messages In This Thread
Beginner Date Helper Question - by El Forum - 10-06-2008, 04:40 PM
Beginner Date Helper Question - by El Forum - 10-07-2008, 12:06 AM
Beginner Date Helper Question - by El Forum - 10-07-2008, 05:37 AM
Beginner Date Helper Question - by El Forum - 10-07-2008, 06:27 AM
Beginner Date Helper Question - by El Forum - 10-07-2008, 06:34 AM
Beginner Date Helper Question - by El Forum - 10-07-2008, 06:34 AM
Beginner Date Helper Question - by El Forum - 10-07-2008, 01:28 PM
Beginner Date Helper Question - by El Forum - 10-08-2008, 02:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB