web.convertDateParam

Converts a date string stored in a parameter to a different format.

Syntax

web.convertDateParam( {object] );

JavaScript Object

{
    sourceParam: "<string>" ,
    targetParam: "<string>" ,
    sourceFormat: "<string>" ,
    targetFormat: "<string>"
}
Property NameDescription
SourceParam The name of the parameter containing the date string to convert. If targetparamname is not used, the converted date string is written to this source parameter. Note that this is not a name-value pair. Pass only the name of the parameter.
targetParam If targetParam is specified, the converted date string is written to the parameter with this name and the SourceParam value is not changed.
sourceFormat The input date format.
targetFormat The target date format.

Return Values

Not applicable

Parameterization

Parameterization is not applicable to this function.

General Information

The web.convertDateParam function converts a date string stored in a parameter from one format to another.

The only supported sourceFormat is "AMERICAN". The only targetFormat supported is "GERMAN".

Example

web.convertDateParam ({
    sourceParam: "americanDateParam",
    targetParam: "germanDateParam",
    sourceFormat: "AMERICAN",
    targetFormat: "GERMAN"
});