Reputation: 53
my data base have simple date and time but when i pic in UI so time is convert in to GMT . How to convert origional time(DB) .
Upvotes: 0
Views: 122
Reputation: 741
Use <f:convertDateTime/>
<f:convertDateTime/>
Example:
<h:outputText value="#{myBean.myDate}"> <f:convertDateTime pattern="dd/MM/yyyy" /> </h:outputText>
More info about <f:convertDateTime/> can be found here.
Upvotes: 1