You need to sign in to do that
Don't have an account?
Sure@Dream
Display the date time in current user's timezone using apex:outputtext
Hi All,
I am displaying the createdDate field in visualforce page, using apex:outputtext.
<apex:outputText value="{!comment.CreatedDate}"/>
It is getting displayed in GMT timezone. Can I display it in current user's timezone, using apex:outputtext, without using any coding?
I cannot use outputField, it will give 'Not a valid binding' error
Thanks
I am displaying the createdDate field in visualforce page, using apex:outputtext.
<apex:outputText value="{!comment.CreatedDate}"/>
It is getting displayed in GMT timezone. Can I display it in current user's timezone, using apex:outputtext, without using any coding?
I cannot use outputField, it will give 'Not a valid binding' error
Thanks
Got is solved by giving a space in the value attribute(after starting quote):
<apex:outputText value=" {!comment.CreatedDate}"/>
All Answers
Got is solved by giving a space in the value attribute(after starting quote):
<apex:outputText value=" {!comment.CreatedDate}"/>
I am not a developer, but had to modify some Visualforce templates we have in our org. I was looking for a way to display date in a more "user friendly" way for our international users, and I came across this question/answer. Thank you for sharing!