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

[eluser]pisio[/eluser]
Hi all.
Why
Code:
$t = time();
        echo "<p>{$t}</p>";
        $n =  mdate('%d/%m/%Y',$t);
        echo "<p>{$n}</p>";
        $h =  human_to_unix($n);
        echo "<p>{$h}</p>";

dont return $h ?
Code:
<p>1281539306</p>
<p>11/08/2010</p>
<p></p>
#2

[eluser]verynewtothis[/eluser]
This worked:
Code:
$t = time();
        echo "<p>{$t}</p>";
        $n =  mdate('%Y-%m-%d %h:%i %a',$t);
        echo "<p>{$n}</p>";
        $h =  human_to_unix($n);
    echo "<p>{$h}</p>";
#3

[eluser]pisio[/eluser]
With $n = mdate('%Y-%m-%d %h:%i %a',$t);
Work , but i dont have need from " H:i a ".
Can i go without it's ?

sorry for my bad EN.
#4

[eluser]verynewtothis[/eluser]
Not entirely sure if this will work but try:
Code:
$n =  mdate('%Y-%m-%d 00:00 AM',$t);
#5

[eluser]pisio[/eluser]
[quote author="verynewtothis" date="1281559517"]Not entirely sure if this will work but try:
Code:
$n =  mdate('%Y-%m-%d 00:00 AM',$t);
[/quote]
It's work !
10x for help.




Theme © iAndrew 2016 - Forum software by © MyBB