Tag Link | [Server_Date] | Category | Date |
---|---|---|---|
Type | Substitution | Source Available | No |
Support | Preferred | Version | 2.0 |
Change | Unchanged | Data Source | Any |
Output Type | String | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x, Lasso 2.5, Lasso 2.0 |
[Server_Date] returns the current date in a format suitable for display or logging.
Accepts an optional parameter which determines the output format for the date.
Note: The [Date] tag should be used to generate a date/time string for use as an input to the [Date_...] tag. The [Date_Format] tag can be used to generate dates in any required format for display, database storage, or logging.
[Server_Date]
[Server_Date:
[Server_Date:
[Server_Date:
[Server_Date:
[Server_Date:
Optional Parameters | |
---|---|
-Short | Outputs the date in short form. |
-ShortY2K | Outputs the date in short form with a 4 |
-Long | Outputs the date in long form with full English day and month name and 4 |
-Extended | Outputs the date in extended format with 4 |
-Abbrev | Outputs the date in short form with abbreviated English day and month name and 4 |
To display the current date to a site visitor:
Use the [Server_Date] tag. The following example informs the site visitor what date it is.
<p>Today's date is [Server_Date:
<p>Today's date is 9/13/2001.