String datetime to DateTime
| From: | Glenn Holden | Date: | Wed, 19 Jun 2002 22:58:16 +0000 |
| Subject: | String datetime to DateTime | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-19890@lists.php.net to get a copy of this message | ||
Hello All!
I have a unix time stamp in string format like this:
12/Jun/2002:01:02:26 -0600
I am trying to turn that back into a mySQL DateTime value. I've
experimented with strtotime with no luck. I'm not really sure if that's
what it's for.
I can, of course, parse the string manually to build a datetime that MySQL
will accept, but isn't there a function that handles this?
How do -you- do this?
Thanks!
-Glenn