original_string: public function display_data() {
          // Check if time was specified.
          if (!empty($this->field->param3)) {
              $format = get_string('strftimedaydatetime', 'langconfig');
          } else {
              $format = get_string('strftimedate', 'langconfig');
          }
  
          // Check if a date has been specified.
          if (empty($this->data)) {
              return get_string('notset', 'profilefield_datetime');
          } else {
              return userdate($this->data, $format);
          }
      }
code: public function display_data() {
          // Check if time was specified.
          if (!empty($this->field->param3)) {
              $format = get_string('strftimedaydatetime', 'langconfig');
          } else {
              $format = get_string('strftimedate', 'langconfig');
          }
  
          // Check if a date has been specified.
          if (empty($this->data)) {
              return get_string('notset', 'profilefield_datetime');
          } else {
              return userdate($this->data, $format);
          }
      }
code_tokens: public function display_data ( ) { // Check if time was specified. if ( ! empty ( $ this -> field -> param3 ) ) { $ format = get_string ( 'strftimedaydatetime' , 'langconfig' ) ; } else { $ format = get_string ( 'strftimedate' , 'langconfig' ) ; } // Check if a date has been specified. if ( empty ( $ this -> data ) ) { return get_string ( 'notset' , 'profilefield_datetime' ) ; } else { return userdate ( $ this -> data , $ format ) ; } }
docstring: Display the data for this field.
docstring_tokens: Display the data for this field .