Speak, I need to format a date in Java.
I'm using Java web, Primefaces, MVC, TDD, JSF, Hibernate. I am an intern and I am doing a project manager project for my company.
My date entry view looks like this:
<h:outputText value="Data de Início"/>
<p:calendar value="#{projetoBean.projetoCadastro.dataInicio}" pattern="dd/MM/yyyy">
</p:calendar>
My view to show the date looks like this:
<p:column headerText="Data de Início" filterBy="#{projeto.dataInicio}">
<h:outputText value="#{projeto.dataInicio}"/>
</p:column>
The entity like this:
@Temporal(value = TemporalType.TIMESTAMP)
@Column(name = "dataInicio_projeto")
private Date dataInicio;
And it shows like this:
I wanted it to show like this:
09/30/2016 - Day / Month / Year and without schedules.