Forums
This topic is locked
reversing date fields during insert
Posted 17 May 2002 12:56:50
1
has voted
17 May 2002 12:56:50 Julio Taylor posted:
haloi'm using MySQL to store a date (using "date" data type). as you know, MySQL stores dates in YYYY-MM-DD format. In order not to confuse the secretaries at work, is there a way i can reverse the input string so when people type DD-MM-YYYY it is sent to the dfatabase as YYYY-MM-DD?
thanks!
Replies
Replied 20 Dec 2006 12:43:29
20 Dec 2006 12:43:29 André H. replied:
check out: www.phpbuilder.com/board/archive/index.php/t-10313262.html
that will result in (for example):
<font face='Courier New'>GetSQLValueString(date('Y-m-d', strtotime($_POST['DateOfBirth'])), "date",</font id='Courier New'>
in your insert or update query in Dreamweaver...
that will result in (for example):
<font face='Courier New'>GetSQLValueString(date('Y-m-d', strtotime($_POST['DateOfBirth'])), "date",</font id='Courier New'>
in your insert or update query in Dreamweaver...