always use mysql to format the date, always use datetime
str_to_time just wastes time.
INSERT INTO table (date) VALUES (NOW())
bugger timestamp let mysql do the work
$sql = mysql_query("SELECT Name, DATE_FORMAT(VisitTime, '%m.%d, %H:%i:%s') as vtime FROM STATS");
$query = mysql_fetch_array($sql);
other options
%Y: Long year (2002)
%M: Long month (August, September)
%m: Numeric month (08, 09)
%d: Day of the month (01)
%W: Long day of the week (Monday, Tuesday)
%a: Short day of the week (Mon, Tue)
%H: Hour (01, 02)
%i: Minute (01, 02)
%s: Second (01)
echo $query["vtime"];
there's my 2 cents worth