Thread: a query problem
View Single Post
  #5 (permalink)  
Old 12-20-03, 12:05 PM
mdhall's Avatar
mdhall mdhall is offline
Aspiring Coder
 
Join Date: Oct 2003
Posts: 510
Thanks: 1
Thanked 1 Time in 1 Post
I usually make a field named "current_date" ( field-type is date ) in the table row, and have the insert query use 'now()' to insert the date in the field. Then display it as

$current_date=$date;
$date = Date("m-d-Y");
or
$date = Date("d-m-Y");

Don't know if its the best way but it works.

Last edited by mdhall; 12-20-03 at 12:18 PM.
Reply With Quote