Use: date("n/j/Y g:i:s A");
If you need any more help on what the letters mean, or you need to change the layout visit: http://www.php.net/manual/en/function.date.php keTTle_drum. >>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 :) _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php