SourcePoint Intel Help

Table of Contents

_strdate

Copy the current system date to an nstring variable.

Syntax

[result = ] _strdate(string)

Where:

result

specifies an nstring variable to which the function return value is assigned. If result is not specified, the return value is displayed on the next line of the screen.

string

is an nstring variable.

Discussion

The _strdate function copies the current system date into an nstring variable.  The date is formatted as mm/dd/yy.  The return value can also be assigned to an nstring variable, or displayed on the command line.

Example 1

Command Input:

define nstring buffer

_strdate(buffer)

buffer

Result:

12/29/08

 

Example 2

Command Input:

define nstring buffer

define nstring strAnswer = _strdate(buffer)

strAnswer

 

Result:

12/29/08

Related Topics

_strtime

ctime

time