$DateP: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Mlarocca moved page $DATEP to $DateP: Lower case change)
m (misc formatting)
 
Line 1: Line 1:
<p>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.</p>
<p>
<b>Syntax</b>
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 $DATEP is:  </p>
 
<p class="code">$DATEP<var>[</var>(year-format)<var>]</var>
==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>
<td align="right">0</td>
<th>0</th>
<td>The default; indicates that $DATEP returns a 9-character string equal to the current date in the dd mon yy format.</td>
<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>
<td align="right">1</td>
<th>1</th>
<td>Indicates that $DATEP returns an 11-character string equal to the current date in the dd mon yyyy format.</td>
<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&nbsp;204</var> encounters an error, the function returns all asterisks (*).</p>
<p>
<p>See also [[Overview of $DATE functions#Overview of $DATE functions|Overview of $DATE functions]].</p>
If <var class="product">Model&nbsp;204</var> encounters an error, the function returns all asterisks (*).</p>
<b>Example</b>
<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 . . .