jsf 2 glassfish 4 primefaces 5.1
i am using the f:convertDateTime to convert the way date is shown but its showing the wrong date. when i normally show the date it shows Sat Jan 01 00:00:00 AST 2011
which is correct but its not what i want to show
so i am using <f:convertDateTime dateStyle="short"></f:convertDateTime>
but instead of showing
01/01/11
its giving me
31/12/10
i tried using <f:convertDateTime pattern="MM/dd/yyyy"></f:convertDateTime>
but that also gives me
12/31/2010
instead of
01/01/2011
<p:column headerText="Installation Date"
filterBy="#{w.installationDate}"
filterMatchMode="contains"
sortBy="#{w.installationDate}">
<h:outputText value="#{w.installationDate}" >
<f:convertDateTime pattern="MM/dd/yyyy"></f:convertDateTime>
</h:outputText>
</p:column>