form date
Posted: Tue Oct 07, 2003 5:44 pm
hey
Can anyone help me
I have a form and one of the fields is date. I call the database to show the date in the input type, so it shows e.g. 13th Oct 03. I have put this code to put it into that format
The problem that i am getting is that if i change the date in the input type, it does not work.
I am thinking when it updates the database, do i have to convert the date i entered to the database date format?? if it is , i am not sure how to do that
many thanks for your help
Can anyone help me
I have a form and one of the fields is date. I call the database to show the date in the input type, so it shows e.g. 13th Oct 03. I have put this code to put it into that format
Code: Select all
<?php
$date = strtotime($r["date"]);
$date = date("dS M y", $date );
?>I am thinking when it updates the database, do i have to convert the date i entered to the database date format?? if it is , i am not sure how to do that
many thanks for your help