LassoScript Utility
Basics Browse Detail

[Server_Date]

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

Description

[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.
-Short 12/25/01 (default)
-ShortY2K 12/25/2001
-Long Wednesday, December 25, 2001
-Abbrev Wed, Dec 25, 2001
-Extended 2001-12-25

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.

Syntax

[Server_Date]

[Server_Date-Short]

[Server_Date-ShortY2K]

[Server_Date-Long]

[Server_Date-Abbrev]

[Server_Date-Extended]

Parameters

Optional Parameters
-Short Outputs the date in short form.
-ShortY2K Outputs the date in short form with a 4-digit year.
-Long Outputs the date in long form with full English day and month name and 4-digit year.
-Extended Outputs the date in extended format with 4-dgiit year, month, and day separated by hyphens.
-Abbrev Outputs the date in short form with abbreviated English day and month name and 4-digit year.

Examples

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-ShortY2K]

<p>Today's date is 9/13/2001.