11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

OCONV Date (D)<br />

Syntax<br />

OCONV(integer.exp, "D [y] [c] [fmt]")<br />

Description<br />

The OCONV date (D) function converts an integer in internal date format to date<br />

display format. If the input value or conversion code is invalid, UniData returns the<br />

input value. UniData ignores leading zeros in the input date.<br />

Note: The internal format of the date is the number of days before or after December<br />

31, 1967. Days before are represented as negative numbers.<br />

With UDT.OPTIONS 4 on, this command converts the text of dates to uppercase. For<br />

example, May 13 is converted to MAY 13.<br />

With UDT.OPTIONS 29 on, this command converts Sunday to 7 instead of 0. For<br />

information about UDT.OPTIONS, see the UDT.OPTIONS <strong>Commands</strong> <strong>Reference</strong>.<br />

In BASICTYPE P, OCONV returns an empty string if UDT.OPTIONS 56 is on and the<br />

input value or conversion code is invalid.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

1-489 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

integer.exp Indicates a date in internal format.<br />

OCONV Date (D) Parameters

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!