You need to sign in to do that
Don't have an account?
paul-lmi
controlling output style of dates in VF
We are building a sitemap VF page for our SF Knowledge integration, and I'm trying to force the output of the date to be in a unix-style timestamp.
what I want
2010-08-26T09:13:09-05:00
what i get
Wed Aug 18 18:52:36 GMT 2010
how can i force the system to output a date the way it's actually stored?
Hi ,
I am afraid we dont have any datetime formatting functions in visualforce rather try the following formatting example in Apex.
I tried it in execute Anonymous and it resulted out in
Hope this helps. The result output will be in String so you can use outputText vf tag.
Customize format string and try to get answer from following sample
-Suresh
Beware: apex:outputText value=... doesn't seem to have a way to change the time zone. If you are not in the GMT time zone this the technique was not useful.