This function that converts Integer date YYYYMMDD into string "YYYY-MM-DD" that can be assigned to a String-name variable.  As a date formatted String, the text date will display in its formatted date when it appears after a PRINT textDate statement.

 

Syntax:

AsDate(dateValue)

 

Parameter:

Description:

dateValue

Any date value as an Integer value.

 

Returns:

Converts an integer valid date value: 20200315 into a string/text that will appear as: "2020-03-15"

 

Example:

Variables: textDate TYPE: STRING
 
textDate = AsDate(20200315)
 
Print textDate
Output "2020-03-15"

 

 

Links:

PRINT, Variables, Series

See Also:

String

 


Edit Time: 11/11/2020 2:43:44 PM


Topic ID#: 660

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software