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:
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...PHP Code:<?php echo date('d/m/Y', strtotime($qry["JoinDate"])); ?>
<?php echo($qry['loginDateTime']?date('d/m/Y', strtotime($qry['loginDateTime'])):'unknown') ?>



Reply With Quote
Bookmarks