How to: |
The HCNVRT function converts a date-time value to alphanumeric format for use with operators such as EDIT, CONTAINS, and LIKE.
HCNVRT(timestamp,(format), length, output_format)
where:
Date-Time
Is the value to be converted.
Alphanumeric
Is the format of the timestamp enclosed in parentheses. It must be a date-time format (H format).
Integer
Is the number of characters in the alphanumeric field that is returned. If the length is smaller than the number of characters needed to display the alphanumeric field, the function returns a blank.
Alphanumeric
Assume that you have a date-time field DTCUR in H format. To convert this timestamp to an alphanumeric string, use the following syntax:
HCNVRT(DTCUR, '(HMDYYS)', 20, 'A20')
The function returns the string '03/26/2004 14:25:58' that is assignable to an alphanumeric variable.
iWay Software |