OK, I tried the code and it works, but not for what I have, or mabye I don't know how to make it work. I am getting this data from the user:
month, day, year, hour ,min, sec
I want to convert that to a time() based int to evaluate. I also want to beable to display the date using the int provided. When I do this now, date("d/m/y h:i:s", "1844255643"), does not show the date when I use a number created by time().
Here is my code:
//this is how I get the initial value
$start = mktime($mon,$day,$year,$hour,$minute,$seconds);
$stop = mktime($mon2,$day2,$year2,$hour2,$minute2,$seconds2);
//This is how I save it in my database, but when I call on it I use this
$strt=date("m/d/y h:i:s",$start);
echo($strt);
$stot=date("m/d/y h:i:s",$stop);
echo($stot);
This does not show the correct time entered initialy. So my question is, how do I make it acurate?