lukelukeluke
Technical User
Hi there, i have problems with my date.
I used timestamp() for some entrys into my database. What timestamp made was a code of the current date. This code looks like this: 20040525230914.
I would like to give out this code now a bit bether, Like this: "May, 25. 2004".
How can i do that? I have tryed many things but all wont work. Can anyone help me?
here is something i tryed:
I used timestamp() for some entrys into my database. What timestamp made was a code of the current date. This code looks like this: 20040525230914.
I would like to give out this code now a bit bether, Like this: "May, 25. 2004".
How can i do that? I have tryed many things but all wont work. Can anyone help me?
here is something i tryed:
Code:
<?php
$time = "20040525230914";
$ts = strtotime ($time);
print(date("20040525230914"));
echo("<br><br>");
print (date ("h:i A l F dS, Y", $ts));
echo("<br><br>");
$dasdatum = getdate($time);
print (date ($dasdatum));
?>