$DateP: Difference between revisions
Jump to navigation
Jump to search
m (misc formatting) |
|||
Line 1: | Line 1: | ||
<p>The $ | <p> | ||
The <var>$DateP</var> function returns a 9-character or 11-character string equal to the current date in either "dd mon yy" format (for example, 04 AUG 91) or "dd mon yyyy" format (for example, 04 AUG 1991). The default is 9 characters.</p> | |||
<p>The format for $ | |||
<p class=" | ==Syntax== | ||
<p> | |||
The format for <var>$DateP</var> is: </p> | |||
<p class="syntax">$DateP<span class="squareb">[</span>(<span class="term">year-format</span>)<span class="squareb">]</span> | |||
</p> | </p> | ||
<p>where year-format is optional and can be: </p> | <p> | ||
<table> | where <var class="term">year-format</var> is optional and can be: </p> | ||
<table class="thJustBold"> | |||
<tr> | <tr> | ||
< | <th>0</th> | ||
<td>The default; indicates that $ | <td>The default; indicates that <var>$DateP</var> returns a 9-character string equal to the current date in the DD MON YY format.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <th>1</th> | ||
<td>Indicates that $ | <td>Indicates that <var>$DateP</var> returns an 11-character string equal to the current date in the DD MON YYYY format.</td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
<p>If <var class="product">Model 204</var> encounters an error, the function returns all asterisks (*).</p> | <p> | ||
<p>See also [[Overview of $ | If <var class="product">Model 204</var> encounters an error, the function returns all asterisks (*).</p> | ||
<p> | |||
See also [[Overview of $Date functions]].</p> | |||
==Example== | |||
<p class="code">BEGIN | <p class="code">BEGIN | ||
SET HEADER 1 'TRIAL BALANCE' WITH $DATEP AT COLUMN 30 | SET HEADER 1 'TRIAL BALANCE' WITH $DATEP AT COLUMN 30 | ||
Line 25: | Line 33: | ||
. | . | ||
</p> | </p> | ||
[[Category:SOUL $functions]] | [[Category:SOUL $functions]] |
Latest revision as of 21:17, 6 October 2015
The $DateP function returns a 9-character or 11-character string equal to the current date in either "dd mon yy" format (for example, 04 AUG 91) or "dd mon yyyy" format (for example, 04 AUG 1991). The default is 9 characters.
Syntax
The format for $DateP is:
$DateP[(year-format)]
where year-format is optional and can be:
0 | The default; indicates that $DateP returns a 9-character string equal to the current date in the DD MON YY format. |
---|---|
1 | Indicates that $DateP returns an 11-character string equal to the current date in the DD MON YYYY format. |
If Model 204 encounters an error, the function returns all asterisks (*).
See also Overview of $Date functions.
Example
BEGIN SET HEADER 1 'TRIAL BALANCE' WITH $DATEP AT COLUMN 30 NEW PAGE . . .