Re: Time Question
| From: | Lerp | Date: | Thu, 14 Feb 2002 18:57:11 +0000 |
| Subject: | Re: Time Question | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-16958@lists.php.net to get a copy of this message | ||
Thx Rick :) Appreciate your help :)
Cheers, Joe
"Rick Emery" <remery@excel.com> wrote in message
news:EAA093B474ABD311A71E00508B5FE08305C2D19D@adntex03.us.excel.com...
> <?php
> $t = date("m/d/Y h:i:s A", gettimeofday());
> print $t;
> ?>
> -----Original Message-----
> From: Lerp [mailto:joe@coastaldestination.com]
> Sent: Thursday, February 14, 2002 12:45 PM
> To: php-db@lists.php.net
> Subject: [PHP-DB] Time Question
>
>
> Hi there. Got a bit of a snag. I'm migrating an ASP app to PHP with a
> mssql7.0 backend. The snag is this, I have a 'starttime' field in my db
> using the 'datetime' format ... looks like this 2/14/2002 12:21:28 PM.
> Unfortuanely, I'm unable to convert this field to type integer at the
> present time.
>
> How would I get the current time in the same format as above (2/14/2002
> 12:21:28 PM) for insertion to the db in a datetime field datatype?
>
> Thx Joe :)
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php