I am using {!Today} in a Custom Email Template and it is showing today's date.

But I need to change the template to VF template and I am getting a error.

Can suggest how can I show today's date without creating any new formula field and populating in the object.


In visualforce you need to use {!TODAY()}. Also you can use Year, Month and Day to format it any way you want it. For example:


You can check here for a full list of visualforce functions.

| improve this answer | |
  • but it is showing a full date with time Mon Jul 25 00:00:00 GMT 2016...I just want date – ajay bagdad Jul 25 '16 at 10:56
  • @ajaybagdad added an example – Fernando Gavinho Jul 25 '16 at 10:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.