Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: datetime insertion problem

by TedPride (Priest)
on May 27, 2006 at 20:26 UTC ( [id://552035]=note: print w/replies, xml ) Need Help??


in reply to datetime insertion problem

Pardon me for asking stupid questions, but why aren't you just doing something like:
INSERT INTO mytable (mydatetimefield) values (NOW());
mySQL accepts NOW() input for datetime fields, and there's no need to mess with formatting it yourself.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://552035]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-24 17:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found