LassoScript Utility
Basics Browse Detail

[Date->Month]

Tag Link [Date->Month] Category Date
Type Member Source Available No
Support Preferred Version 6.0
Change Unchanged Data Source Any
Output Type String, Integer Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0

Description

[Date->Month] returns the number of the month (1=January, 12=December) for a specified date cast using the [Date] tag.

An optional -Long parameter returns the full English month name (e.g. "January"). An optional -Short returns an abbreviated English month name (e.g. "Jan").

Syntax

[(Date)->Month]
[(Date)->(Month: -Short)]

Parameters

Optional Parameters
-Long Returns the full English month name.
-Short Returns and abbreviated English month name.
-Days Returns the integer number of days in the month (e.g. 31).

Examples

To return the month from a Lasso date:

The following example returns the month from the Lasso date 8/29/2002 12:30:00.

[(Date:'8/29/2002 12:30:00')->Month]

8