LassoScript Utility
Basics Browse Detail

[Date_GMTtoLocal]

Tag Link [Date_GMTtoLocal] Category Date
Type Substitution Source Available No
Support Preferred Version 3.0
Change Unchanged Data Source Any
Output Type Date Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x

Description

[Date_GMTtoLocal] converts a date/time from Greenwich Mean Time to local time. The date parameter should be a Lasso date data type or valid Lasso date string.

Syntax

[Date_GMTtoLocal]

[Date_GMTtoLocal: Base Date]

Parameters

Required Parameters
Base Date The date to be converted to local date from GMT.

Examples

To output the current date and time:

Use the [Date_GMTtoLocal] tag to convert the current date/time in Greenwich Mean Time to local time. The following example gets the current date/time using the optional -GMT tag, then converts it to local time.

<p>[Date_GMTtoLocal: (Date), -GMT]

<p>9/13/2001 1:33:05