public static function convertDateToHuman($dbDate, $removeHours=FALSE) {

		$t = Translator::getInstance();

		$date = new \DateTime($dbDate);
		$dateFormat = $removeHours ? 'DATE_FORMAT' : 'DATETIME_FORMAT';

		return $date->format($t->get($dateFormat));

	}
public static function convertDateToHuman($dbDate, $removeHours=FALSE) {

		$t = Translator::getInstance();

		$date = new \DateTime($dbDate);
		$dateFormat = $removeHours ? 'DATE_FORMAT' : 'DATETIME_FORMAT';

		return $date->format($t->get($dateFormat));

	}
public static function convertDateToHuman ( $ dbDate , $ removeHours = FALSE ) { $ t = Translator :: getInstance ( ) ; $ date = new \ DateTime ( $ dbDate ) ; $ dateFormat = $ removeHours ? 'DATE_FORMAT' : 'DATETIME_FORMAT' ; return $ date -> format ( $ t -> get ( $ dateFormat ) ) ; }
Converts a date from DB format to an human readable format based on current user language.

@param	string	Date (ex. 2013-01-01 12:00:00).
@param	bool	If this flag is TRUE, removes hours from result; default is FALSE.
@return	string
Converts a date from DB format to an human readable format based on current user language .