getdate function not working correctly
Posted: Tue Jul 16, 2002 5:48 pm
hi all- i am using this script; for getdate in my database-- it works as such but their is a small problem with it....
<input type=hidden name="date" value="<?php echo "$mday/$mon/$year $hours:$minutes"; ?>">
the problem with it is that when it shows the time it shows 21:1 rather than 21:01 or 19:4 instead of 19:04 and so on and so on (you get the picture) (obviously 21:45 shows as 21:45 just time that has 0 in between)
i tried to see if their wa sa different type for minutes than 'minutes' but it is the only one i think......
does anyone know why it would do this???
<input type=hidden name="date" value="<?php echo "$mday/$mon/$year $hours:$minutes"; ?>">
the problem with it is that when it shows the time it shows 21:1 rather than 21:01 or 19:4 instead of 19:04 and so on and so on (you get the picture) (obviously 21:45 shows as 21:45 just time that has 0 in between)
i tried to see if their wa sa different type for minutes than 'minutes' but it is the only one i think......
does anyone know why it would do this???