Share this page

# web_convert_date_param

Miscellaneous Functions

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

    int web_convert_date_param( const char * SourceParam, [const char * TargetParam,] const char * SourceFormat, const char * TargetFormat,LAST ) ;

Argument | Description
--- | ---
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.
LAST | A marker indicating the end of the argument list.

## Return Values

This function returns LR_PASS (0) on success, and LR_FAIL (1) on failure.

## Parameterization

Parameterization is not applicable to this function.

## General Information

The web_convert_date_param 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

In this example, web_convert_date_param converts a date string from the American format to the German format.

Copy code

    lr_save_string("1/10/03 12:11:10", "date1");
    web_convert_date_param( "date1",
        SourceFormat=AMERICAN",
        TargetFormat=GERMAN",
        LAST );
    The original value of parameter date1: "1/10/03 12:11:10"
    The parameter value after web_convert_date_param: "10.1.03 12:11:10"

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: