Free-Conversant Support / Date
 Home   About Conversant   Free Sites   Hosting   Support   XML-RPC 

Search



Documentation >> Macros >> Date

<!--#date-->

Returns formatted date/time. By default, this macro displays the current date.

Required Attributes:

  • None.

Optional Attributes

  • d="[string]" : A string representing the date to be displayed. Conversant will attempt to contruct a net standard date string from the string passed, so, for example, "1/1/2002" would become "Tue, 01 Jan 2002 05:00:00 GMT". When type is set to "date", Conversant also support the special relative values: "now", "now+[number of seconds]", and "now-[number of seconds]". "now" will be evaluated to the current time. To have date display a tomorrow's date, you could send the d attribute "now+86400".
  • Date attributes : See Dates documentation for details.

Usage

This macro can be used to display a date/time to the user indicated the time of a page request, or a time relative to the time of the page request.

View in DG