# ICONV

Updated: 11/30/2021, 7:00:45 PM
Created: 11/30/2021, 7:00:45 PM
Last Updated By: Jake Tuttle
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