Difference between revisions of "STOD()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
|||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to perform string to date conversion | Function to perform string to date conversion | ||
− | |||
==Syntax== | ==Syntax== | ||
STOD(<expC>) | STOD(<expC>) | ||
− | |||
==See Also== | ==See Also== | ||
− | [[CTOD()]], [[DTOS()]], [[SET CENTURY]] | + | [[CTOD()]], [[DTOS()]], [[SET CENTURY]], [[STOT()]] |
− | + | ||
==Description== | ==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. | 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== | ==Example== | ||
Line 26: | Line 22: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] |
Revision as of 04:54, 1 October 2012
Contents
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") D