# ICONV

Updated: 10/19/2021, 9:29:48 PM
Created: 10/19/2021, 9:29:48 PM
Last Updated By: Kevin Munoz
Read Time: 1 minute(s)

Tags: conversions

# Description

The ICONV() function converts data in external form such as dates to their internal form. The function takes the general form:

ICONV(expression1, expression2)
1

Where:

  • expression1 evaluates to the data upon which the conversion is to be performed.
  • expression2 should evaluate to the conversion code that is to be performed against the data.

If the conversion code used assumes a numeric value and a non-numeric value is passed then the original value in expression1 is returned unless the emulation option iconv_nonnumeric_return_null is set.

An example of use is as:

InternalDate = ICONV("27 MAY 1997", "D")
CRT InternalDate
1
2

The above should display the date in internal format.

See also: OCONV

See also: Conversion Processing

Go back to jBASE BASIC

Go back to Programmers' Reference Guide