Visualforce: How do I print the Current Date?

Gibson picture Gibson · Jan 31, 2012 · Viewed 12.6k times · Source

How do I print the current date on Visualforce?

Stuff like Today(), System.now, doesn't work.

Haven't been able to find any documentation or stackoverflow questions regarding this subject.

Answer

manubkk picture manubkk · Feb 2, 2012

Visualforce has Data and Time functions too, you can use {!NOW()} or {!TODAY()}.

For more details go here