Перейти к содержимому

Date and time operations

If today (remember that today is always the moment when the message is generated and sent out, not the time when it’s opened by the recipient) is March 22, 2010 then display a message:

<if condition="System.DateTime.Today == new System.DateTime(2010, 03, 22)">
    <p>Today is an important day</p>
</if>

Most frequently used functions:

  1. now
  2. today
  3. day
  4. dayname
  5. dayofweek
  6. dayofyear
  7. month
  8. monthname
  9. year
  10. date_add
  11. date_sub