- Template Name */ public function getTemplateName() { return 'uitypes/DateTime.tpl'; } /** * Function to get the Display Value, for the current field type with given DB Insert Value * @param $value * @return */ public function getDisplayValue($value) { return $dateValue = self::getDisplayDateTimeValue($value); } /** * Function to get Date and Time value for Display * @param $date * @return */ public static function getDisplayDateTimeValue($date) { $date = new DateTimeField($date); return $date->getDisplayDateTimeValue(); } /** * Function to get Date and Time value for Display * @param $date * @return */ public static function getDBDateTimeValue($date) { $date = new DateTimeField($date); return $date->getDBInsertDateTimeValue(); } /** * Function to get the datetime value in user preferred hour format * @param $dateTime * @return date and time with hour format */ public static function getDateTimeValue($dateTime){ return Vtiger_Util_Helper::convertDateTimeIntoUsersDisplayFormat($dateTime); } }