DateAdd Token

The DateAdd token provides you with the ability to generate a date, relative to the current date. This allows you to create a date that is, say, use information about the current module instance at run-time such as the module's ID. Additional Module Tokens will be added to this topic as they become available.

Syntax

[[DateAdd:number,interval,format]]
 

Remarks

 


 

Back to top

Example

<xmod:template>
  ...
  <HeaderTemplate>
    <h1>This current date is: [[DateAdd:]]</h1>
    <h1>Next week the date will be: [[DateAdd:1,w]]</h1>
    <h1>Last month the date was: [[DateAdd:-1,m]]</h1>
    <h1>In five years the date will be: [[DateAdd:5,y,yyyy-MM-dd]]</h1>
  </HeaderTemplate>
  ...
</xmod:template>

<AddForm ClientName='[[Join("MyForm", [[DateAdd:0,d,yyyyMMdd]])]]'>

</AddForm>
Back to top