# Conversion expression

A conversion expression is any function that evaluates to any of the valid processing
 codes listed below in the [See also](#reference871__see_also) section.

## Syntax

```
iconv(str.exp, conv.exp)
oconv(str.exp, conv.exp)
```

## Example(s)

The statement below prints the system time using the mth AQL processing code
 as a literal string.

```
print oconv(time(),&#39;mth&#39;)
```
The conversion expression is the AQL d (date) processing code stored as a string in the variable, *conv.exp*.

```
conv.exp = &#39;d2-&#39;
d = oconv(date(),conv.exp)
```

```
preci= &#39;2&#39;
scale = &#39;4&#39;
money = oconv(income,&#39;mr&#39;:preci:scale)
```
The conversion expression is the compound string expression:

```
&#39;mr&#39;:preci:scale
```
that results in the string, `"mr24"`.

## See also

- [d (date) processing code](https://d3codex.com/processingcodes/d-date-processing-code/)
- [Expression](https://d3codex.com/definitions/expression/)
- [iconv() function](https://d3codex.com/pickbasic-flashbasic/iconv-function/)
- [mt (mask time) processing code](https://d3codex.com/processingcodes/mt-mask-time-processing-code/)
- [oconv() function](https://d3codex.com/pickbasic-flashbasic/oconv-function/)
- [Statements and functions](https://d3codex.com/pickbasic-flashbasic/statements-and-functions/)
- [t (text extraction) processing code](https://d3codex.com/processingcodes/t-text-extraction-processing-code/)
- [g (group extract) processing code](https://d3codex.com/processingcodes/g-group-extract-processing-code/)
- [l (length) processing code](https://d3codex.com/processingcodes/l-length-processing-code/)
- [m (mask) processing code](https://d3codex.com/processingcodes/m-mask-processing-code/)
- [mc (mask character) processing code](https://d3codex.com/processingcodes/mc-mask-character-processing-code/)
- [mp (mask packed decimal) processing code](https://d3codex.com/processingcodes/mp-mask-packed-decimal-processing-code/)
- [ms (mask alter sort) processing code](https://d3codex.com/processingcodes/ms-mask-alter-sort-processing-code/)
- [mx (mask ASCII to hexadecimal) processing code](https://d3codex.com/processingcodes/mx-mask-ascii-to-hexadecimal-processing-code/)
- [my (mask hexadecimal to ASCII) processing code](https://d3codex.com/processingcodes/my-mask-hexadecimal-to-ascii-processing-code/)
- [p (pattern match) processing code](https://d3codex.com/processingcodes/p-pattern-match-processing-code/)
- [r (range) processing code](https://d3codex.com/processingcodes/r-range-processing-code/)
- [BASIC user exits](https://d3codex.com/pickbasic-flashbasic/basic-user-exits/)

---
Source: https://d3codex.com/pickbasic-flashbasic/conversion-expression/ - part of the D3Codex reference.
