title: JavaFx: Formatting Table Column Data
body: <p>This is my first time working on JavaFx and I'm following this tutorial just as a template: <a href="http://code.makery.ch/library/javafx-8-tutorial/part3/" rel="nofollow noreferrer">http://code.makery.ch/library/javafx-8-tutorial/part3/</a>.</p>
  <p>For my application, I'm working with 2 columns on the left side, telephone number and the call start date/time. I'm wanting to change the formatting of the data in the table as it's currently coming through as <code>yyyy-MM-ddThh:mm</code>.</p>
  <p>I can't seem to figure out where to place the formatting piece at. I have a date formatter function that you can find at the link above, but it's returning a string and giving me errors. Thanks for any help you can give. Here are some code snippets of what I'm working with.</p>
  <p>Controller:</p>
  <pre><code>    @FXML
  private void initialize() {
      // Initialize the person table with the two columns.
      billingNumberColumn.setCellValueFactory(cellData -&gt; cellData.getValue().billingNumberProperty());
      callStartColumn.setCellValueFactory(cellData -&gt; cellData.getValue().callStartProperty());
  }
  </code></pre>
  <p>Model:</p>
  <pre><code>public LocalDateTime getCallStart() {
      return callStart.get();
  }
  
  public void setCallStart(LocalDateTime callStart) {
      this.callStart.set(callStart);
  }
  
  public ObjectProperty&lt;LocalDateTime&gt; callStartProperty() {
      return callStart;
  }
  </code></pre>
  <p>Date Format:</p>
  <pre><code>public static String format(ObjectProperty&lt;LocalDateTime&gt; callStart) {
      if (callStart == null) {
          return null;
      }
      return DATE_FORMATTER.format((TemporalAccessor) callStart);
  }
  </code></pre>