Hi all and thank you for all the help.
I followed the instructions below to change the date format from YYYY-mm-dd to mm-dd-YYYY. The below instructions fixed the date format in the Profile View, however, and with due all respect to George for providing the fix below, it messed up the age in the Member Search profile results. So the age now is displayed as the YYYY of birth. I revised the new code (bolow) back to the original BUT the YYYY still shows as the age in the Member Search results. I even reinstated my backup (inc/classes/BxDolProfileFields.php) of course renaming the other, howerer, I still get the same results. The age is displayed as YYYY. PLEASE HELP. I don't know what to do to fix this. THANK YOU SO MUCH. Best wishes. Tony
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Member Search results below:


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
inc/classes/BxDolProfileFields.php solution works, but it mess "last login" and "last edit" dates. So small correction can fix that too.
find:
function getViewableDate( $sDate ) {
return $sDate;
}
and replace it with:
function getViewableDate( $sDate ) {
return (strftime(getParam('short_date_format'), strtotime($sDate)));
}
function getViewableDate2( $sDate ) {
return $sDate;
}
Now we have two functions: one that we modified and will use for our date and original one getViewableDate2 which will use to avoid wrong "last" dates. Now we need to go and use that getViewableDate2 at "last" dates. Find this function getViewableValue( $aItem, $sValue ) and there is:
case 'DateLastEdit':
case 'DateLastLogin':
return $this -> getViewableDate( $sValue );
just replace getViewableDate with getViewableDate2 like:
case 'DateLastEdit':
case 'DateLastLogin':
return $this -> getViewableDate2( $sValue );
and done. Now you have correct dates for DOB and last login/edit.
Cheers,
George