LassoScript Utility
Basics Browse Detail

[Date_LocaltoGMT]

Tag Link [Date_LocaltoGMT] 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_LocaltoGMT] converts a date/time from local time to Greenwich Mean Time. The date parameter should be a Lasso date data type or valid Lasso date string.

Syntax

[Date_LocaltoGMT]

[Date_LocaltoGMT: Base Date]

Parameters

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

Examples

To output the current date and time in Greenwich Mean Time:

Use the [Date_LocaltoGMT] tag. The following example gets the current date and time using [Date] then outputs the equivalent in Greenwich Mean Time.

<p>[Date_LocaltoGMT: (Date)]

<p>9/13/2001 21:31:49 GMT