Posted by J.O. Aho on 08/06/06 18:42
mpar612@gmail.com wrote:
> Is there a way to
> insert the date time into the database using the date and time from the
> users machine rather than the servers machine?
Use javascript to fill a input field with the current time/date when pressing
the submit button.
> Also, is there a way to reformat a date retrieved from a MySQL date
> field using PHP? Just curious.
See:
http://www.php.net/manual/en/function.strtotime.php
http://www.php.net/manual/en/function.date.php
alternative:
http://www.php.net/manual/en/function.explode.php
http://www.php.net/manual/en/function.mktime.php
http://www.php.net/manual/en/function.date.php
//Aho
Navigation:
[Reply to this message]
|