Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

American Date into MySQL 1

Status
Not open for further replies.

likelylad

IS-IT--Management
Jul 4, 2002
388
GB
I have the following date format which I need to input into a MySQL database but I am unable to date so.

Fri 3/26/2010 8:38 AM

I know it should be simple but I just can not get anywhere on it.

I am working on PHP 5.0.2

Very grateful for any help received.
 
Hi

PHP:
[navy]$db_time[/navy][teal]=[/teal][COLOR=darkgoldenrod]date[/color][teal]([/teal][green][i]"Y-m-d H:i:s"[/i][/green][teal],[/teal][COLOR=darkgoldenrod]strtotime[/color][teal]([/teal][navy]$en_time[/navy][teal]));[/teal]

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top