Log in

View Full Version : Changing The Way Search Is Formatted on Date



tomyknoker
07-15-2007, 02:16 AM
I have a search form which is set up to search Date's within my database... At the moment though the dates have to be entered into the search field in the standard format '0000-00-00'... When the results are displayed however I have managed to format them out how I want them '00-00-0000' using the following:


<?php echo date('d/m/Y', strtotime($qry["JoinDate"])); ?>
<?php echo($qry['loginDateTime']?date('d/m/Y', strtotime($qry['loginDateTime'])):'unknown') ?>

Just wondering what I need to change so in the search the dates can be entered in the following format '00-00-0000' so basically Day/Month/Year...