Difference between revisions of "STOD()"

From Lianjapedia
Jump to: navigation, search
Line 19: Line 19:
 
20001015
 
20001015
 
? type("mDate")
 
? type("mDate")
D
+
C
 
</code>
 
</code>
  

Revision as of 08:35, 3 October 2012

Purpose

Function to perform string to date conversion

Syntax

STOD(<expC>)

See Also

CTOD(), DTOS(), SET CENTURY, STOT()

Description

The STOD() function converts the character expression <expC>, in the format "YYYYMMDD", to a date. This function needs the century included in the character string even if SET CENTURY is OFF.

Example

? dtos(date())
20001015
store dtos(date()) to mDate
? mDate
20001015
? type("mDate")
C